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