Sha256: 6d2fb0adf12560ee043a872384db8309dcdc584817ffe5e6667c13f0ab81b048
Contents?: true
Size: 1.02 KB
Versions: 16
Compression:
Stored size: 1.02 KB
Contents
unless Fog.mocking? module Fog class Terremark # Get details of a catalog item # # ==== Parameters # * catalog_item_id<~Integer> - Id of catalog item to lookup # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # FIXME # * 'CatalogItems'<~Array> # * 'href'<~String> - linke to item # * 'name'<~String> - name of item # * 'type'<~String> - type of item # * 'description'<~String> - Description of catalog # * 'name'<~String> - Name of catalog def get_catalog_item(catalog_item_id) request( :expects => 200, :method => 'GET', :parser => Fog::Parsers::Terremark::GetCatalogItem.new, :path => "catalogItem/#{catalog_item_id}" ) end end end else module Fog class Terremark def get_catalog_item(catalog_item_id) raise MockNotImplemented.new("Contributions welcome!") end end end end
Version data entries
16 entries across 16 versions & 1 rubygems