Sha256: 34ec50d27290d8de0259d0fb2d5ee44bc22d3657a2cc835e39a07bc7318063ae

Contents?: true

Size: 621 Bytes

Versions: 36

Compression:

Stored size: 621 Bytes

Contents

module Fog
  module Bluebox
    class Real

      # Get list of products
      #
      # ==== Returns
      # * response<~Excon::Response>:
      #   * body<~Array>:
      #     * 'id'<~String> - UUID of the product
      #     * 'description'<~String> - Description of the product
      #     * 'cost'<~Decimal> - Hourly cost of the product
      def get_products
        request(
          :expects  => 200,
          :method   => 'GET',
          :path     => 'api/block_products.json'
        )
      end

    end

    class Mock

      def get_products
        Fog::Mock.not_implemented
      end

    end
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
fog-0.2.30 lib/fog/bluebox/requests/get_products.rb
fog-0.2.28 lib/fog/bluebox/requests/get_products.rb
fog-0.2.27 lib/fog/bluebox/requests/get_products.rb
fog-0.2.26 lib/fog/bluebox/requests/get_products.rb
fog-0.2.25 lib/fog/bluebox/requests/get_products.rb
fog-0.2.24 lib/fog/bluebox/requests/get_products.rb
tecnh-fog-0.2.23.vpc lib/fog/bluebox/requests/get_products.rb
fog-0.2.23 lib/fog/bluebox/requests/get_products.rb
fog-0.2.22 lib/fog/bluebox/requests/get_products.rb
fog-0.2.21 lib/fog/bluebox/requests/get_products.rb
fog-0.2.20 lib/fog/bluebox/requests/get_products.rb
fog-0.2.19 lib/fog/bluebox/requests/get_products.rb
fog-0.2.18 lib/fog/bluebox/requests/get_products.rb
fog-0.2.17 lib/fog/bluebox/requests/get_products.rb
fog-0.2.16 lib/fog/bluebox/requests/get_products.rb
fog-0.2.15 lib/fog/bluebox/requests/get_products.rb
fog-0.2.14 lib/fog/bluebox/requests/get_products.rb
fog-0.2.13 lib/fog/bluebox/requests/get_products.rb
fog-0.2.12 lib/fog/bluebox/requests/get_products.rb
fog-0.2.11 lib/fog/bluebox/requests/get_products.rb