Class: Fog::Rackspace::Databases::Users

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/rackspace/models/databases/users.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#instanceObject

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

#allObject



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