class Fog::Compute::Cloudstack::Flavors
Public Instance Methods
all()
click to toggle source
# File lib/fog/cloudstack/models/compute/flavors.rb, line 10 def all data = service.list_service_offerings["listserviceofferingsresponse"]["serviceoffering"] || [] load(data) end
get(flavor_id)
click to toggle source
# File lib/fog/cloudstack/models/compute/flavors.rb, line 15 def get(flavor_id) if flavor = service.list_service_offerings('id' => flavor_id)["listserviceofferingsresponse"]["serviceoffering"].first new(flavor) end rescue Fog::Compute::Cloudstack::BadRequest nil end