# File lib/fog/profitbricks/requests/compute/get_flavor.rb, line 65 def get_flavor(flavor_id) response = Excon::Response.new response.status = 200 if flavor = data[:flavors].find do |attrib| attrib["flavorId"] == flavor_id end else raise Fog::Errors::NotFound, "The requested flavor could not be found" end response.body = { "getFlavorResponse" => flavor } response end