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

Version Path
fog-0.0.58 lib/fog/terremark/requests/get_catalog_item.rb
fog-0.0.57 lib/fog/terremark/requests/get_catalog_item.rb
fog-0.0.56 lib/fog/terremark/requests/get_catalog_item.rb
fog-0.0.55 lib/fog/terremark/requests/get_catalog_item.rb
fog-0.0.54 lib/fog/terremark/requests/get_catalog_item.rb
fog-0.0.53 lib/fog/terremark/requests/get_catalog_item.rb
fog-0.0.52 lib/fog/terremark/requests/get_catalog_item.rb
fog-0.0.51 lib/fog/terremark/requests/get_catalog_item.rb
fog-0.0.50 lib/fog/terremark/requests/get_catalog_item.rb
fog-0.0.49 lib/fog/terremark/requests/get_catalog_item.rb
fog-0.0.48 lib/fog/terremark/requests/get_catalog_item.rb
fog-0.0.47 lib/fog/terremark/requests/get_catalog_item.rb
fog-0.0.46 lib/fog/terremark/requests/get_catalog_item.rb
fog-0.0.45 lib/fog/terremark/requests/get_catalog_item.rb
fog-0.0.44 lib/fog/terremark/requests/get_catalog_item.rb
fog-0.0.43 lib/fog/terremark/requests/get_catalog_item.rb