Class: OpenNebula::Client

Inherits:
Object
  • Object
show all
Defined in:
service/objects/client.rb

Overview

Extensions for OpenNebula::Client

Instance Method Summary collapse

Instance Method Details

#userObject

Returns user for given credentials



10
11
12
# File 'service/objects/client.rb', line 10

def user
  OpenNebula::User.new_with_id(-1, self)
end

#user!Object

Returns user for given credentials with info! executed



15
16
17
18
19
# File 'service/objects/client.rb', line 15

def user!
  u = user
  u.info!
  u
end

#user_idObject

Returns user id for given credentials



4
5
6
7
# File 'service/objects/client.rb', line 4

def user_id
  u = user!
  u.id
end