Class: OpenNebula::Client
- Inherits:
-
Object
- Object
- OpenNebula::Client
- Defined in:
- service/objects/client.rb
Overview
Extensions for OpenNebula::Client
Instance Method Summary collapse
-
#user ⇒ Object
Returns user for given credentials.
-
#user! ⇒ Object
Returns user for given credentials with info! executed.
-
#user_id ⇒ Object
Returns user id for given credentials.
Instance Method Details
#user ⇒ Object
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_id ⇒ Object
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 |