# File lib/fog/cloudstack/requests/compute/list_service_offerings.rb, line 21 def list_service_offerings(options={}) flavors = [] if service_offering_id = options['id'] flavor = self.data[:flavors][service_offering_id] raise Fog::Compute::Cloudstack::BadRequest unless flavor flavors = [flavor] else flavors = self.data[:flavors].values end { "listserviceofferingsresponse" => { "count" => flavors.size, "serviceoffering"=> flavors } } end