Sha256: 83394a0acbf8a526f4bc78d0ca1c494de9f4b9678edd0d55a07605e115f53b28
Contents?: true
Size: 865 Bytes
Versions: 9
Compression:
Stored size: 865 Bytes
Contents
module Fog module Slicehost class Compute class Real require 'fog/compute/parsers/slicehost/get_flavor' # Get details of a flavor # # ==== Parameters # * flavor_id<~Integer> - Id of flavor to lookup # # ==== Returns # * response<~Excon::Response>: # * body<~Array>: # * 'id'<~Integer> - Id of the flavor # * 'name'<~String> - Name of the flavor # * 'price'<~Integer> - Price in cents # * 'ram'<~Integer> - Amount of ram for the flavor def get_flavor(flavor_id) request( :expects => 200, :method => 'GET', :parser => Fog::Parsers::Slicehost::Compute::GetFlavor.new, :path => "flavors/#{flavor_id}.xml" ) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems