1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/bluebox/requests/get_product.rb

33 lines
585 B
Ruby
Raw Normal View History

module Fog
class Bluebox
class Real
# Get details of a product
#
# ==== Parameters
# * product_id<~Integer> - Id of flavor to lookup
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Array>:
2010-06-02 11:20:38 -04:00
# TODO
def get_product(product_id)
request(
:expects => 200,
:method => 'GET',
2010-06-02 22:42:51 -04:00
:path => "api/block_products/#{product_id}.json"
)
end
end
class Mock
def get_product(product_id)
2010-06-02 11:09:54 -04:00
Fog::Mock.not_implemented
end
end
end
end