Sha256: 24749a5b6359dba7d69231672a612cdc6539f2731280727a04651064ac3d418c
Contents?: true
Size: 827 Bytes
Versions: 46
Compression:
Stored size: 827 Bytes
Contents
module Fog module Rackspace module Servers class Real # Get details for flavor by id # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'id'<~Integer> - Id of the flavor # * 'name'<~String> - Name of the flavor # * 'ram'<~Integer> - Amount of ram for the flavor # * 'disk'<~Integer> - Amount of diskspace for the flavor def get_flavor_details(flavor_id) request( :expects => [200, 203], :method => 'GET', :path => "flavors/#{flavor_id}.json" ) end end class Mock def get_flavor_details(flavor_id) raise MockNotImplemented.new("Contributions welcome!") end end end end end
Version data entries
46 entries across 46 versions & 1 rubygems