Class: Fog::Compute::ProfitBricks::Flavors

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/profitbricks/models/compute/flavors.rb

Instance Method Summary collapse

Instance Method Details

#allObject



9
10
11
# File 'lib/fog/profitbricks/models/compute/flavors.rb', line 9

def all
  load(service.get_all_flavors.body["getAllFlavorsResponse"])
end

#get(id) ⇒ Object



13
14
15
16
# File 'lib/fog/profitbricks/models/compute/flavors.rb', line 13

def get(id)
  flavor = service.get_flavor(id).body["getFlavorResponse"]
  new(flavor)
end