mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
34 lines
797 B
Ruby
34 lines
797 B
Ruby
module Fog
|
|
module Rackspace
|
|
class Compute
|
|
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)
|
|
Fog::Mock.not_implemented
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|