Class: Fog::Rackspace::Databases::Users
- Inherits:
-
Collection
- Object
- Collection
- Fog::Rackspace::Databases::Users
- Defined in:
- lib/fog/rackspace/models/databases/users.rb
Instance Attribute Summary collapse
-
#instance ⇒ Object
Returns the value of attribute instance.
Instance Method Summary collapse
Instance Attribute Details
#instance ⇒ Object
Returns the value of attribute instance.
10 11 12 |
# File 'lib/fog/rackspace/models/databases/users.rb', line 10 def instance @instance end |
Instance Method Details
#all ⇒ Object
12 13 14 |
# File 'lib/fog/rackspace/models/databases/users.rb', line 12 def all load(retrieve_users) end |
#get(user_name) ⇒ Object
16 17 18 19 |
# File 'lib/fog/rackspace/models/databases/users.rb', line 16 def get(user_name) data = retrieve_users.find { |database| database['name'] == user_name } data && new(data) end |