Class: Fog::Compute::Rackspace::Flavors
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Rackspace::Flavors
- Defined in:
- lib/fog/rackspace/models/compute/flavors.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
10 11 12 13 |
# File 'lib/fog/rackspace/models/compute/flavors.rb', line 10 def all data = service.list_flavors_detail.body['flavors'] load(data) end |
#get(flavor_id) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/fog/rackspace/models/compute/flavors.rb', line 15 def get(flavor_id) data = service.get_flavor_details(flavor_id).body['flavor'] new(data) rescue Fog::Compute::Rackspace::NotFound nil end |