Class: Fog::Rackspace::Identity::Tenants

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

Instance Method Summary collapse

Instance Method Details

#allObject



10
11
12
# File 'lib/fog/rackspace/models/identity/tenants.rb', line 10

def all
  load(retrieve_tenants)
end

#get(id) ⇒ Object



14
15
16
17
# File 'lib/fog/rackspace/models/identity/tenants.rb', line 14

def get(id)
  data = retrieve_tenants.find{ |tenant| tenant['id'] == id }
  data && new(data)
end