fog--fog/lib/fog/new_servers/requests/list_plans.rb

37 lines
836 B
Ruby

module Fog
module NewServers
class Real
# List available plans
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Array>:
# * 'description'<~String> - Description of the plan
# * 'id'<~String> - Id of the plan
# * 'name'<~String> - Name of the plan
# * 'rate'<~String> - Cost per hour of the plan
# * 'os'<~String> - Operating system of the plan
# * 'config'<~String> - Configuration of the plan
#
def list_plans
request(
:expects => 200,
:method => 'GET',
:parser => Fog::ToHashDocument.new,
:path => 'api/listPlans'
)
end
end
class Mock
def list_plans
Fog::Mock.not_implemented
end
end
end
end