Sha256: 0d465bb6390a1b725f10cc26fb35d1e3fff713b117ae3302c6754b63c0373737
Contents?: true
Size: 897 Bytes
Versions: 16
Compression:
Stored size: 897 Bytes
Contents
unless Fog.mocking? module Fog class Slicehost # 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::GetFlavor.new, :path => "flavors/#{flavor_id}.xml" ) end end end else module Fog class Slicehost def get_flavor(flavor_id) raise MockNotImplemented.new("Contributions welcome!") end end end end
Version data entries
16 entries across 16 versions & 1 rubygems