# File lib/fog/cloudstack/models/compute/flavors.rb, line 12 def all data = service.list_service_offerings["listserviceofferingsresponse"]["serviceoffering"] || [] load(data) end
# File lib/fog/cloudstack/models/compute/flavors.rb, line 17 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
Generated with the Darkfish Rdoc Generator 2.