Sha256: f53917eb180636df222613a799372dca5d6630b1ee2cc03fd5e0b9c799ec22ee

Contents?: true

Size: 635 Bytes

Versions: 44

Compression:

Stored size: 635 Bytes

Contents

module Fog
  module Bluebox
    class Compute
      class Real

        # Get details of a block.
        #
        # ==== Parameters
        # * block_id<~Integer> - Id of block to lookup
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        # TODO
        def get_block(block_id)
          request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "api/blocks/#{block_id}.json"
          )
        end

      end

      class Mock

        def get_block(block_id)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

44 entries across 44 versions & 3 rubygems

Version Path
fog-0.5.1 lib/fog/compute/requests/bluebox/get_block.rb
fog-0.5.0 lib/fog/compute/requests/bluebox/get_block.rb
phpfog-fog-0.4.1.3 lib/fog/compute/requests/bluebox/get_block.rb
phpfog-fog-0.4.1.2 lib/fog/compute/requests/bluebox/get_block.rb
phpfog-fog-0.4.1.1 lib/fog/compute/requests/bluebox/get_block.rb
phpfog-fog-0.4.1 lib/fog/compute/requests/bluebox/get_block.rb
fog-0.4.1 lib/fog/compute/requests/bluebox/get_block.rb
fog-0.4.0 lib/fog/bluebox/requests/compute/get_block.rb
fog-0.3.34 lib/fog/bluebox/requests/compute/get_block.rb
fog-0.3.33 lib/fog/bluebox/requests/compute/get_block.rb
fog-0.3.32 lib/fog/bluebox/requests/compute/get_block.rb
fog-0.3.31 lib/fog/bluebox/requests/compute/get_block.rb
fog-0.3.30 lib/fog/bluebox/requests/compute/get_block.rb
fog-0.3.29 lib/fog/bluebox/requests/compute/get_block.rb
fog-0.3.28 lib/fog/bluebox/requests/compute/get_block.rb
fog-0.3.27 lib/fog/bluebox/requests/compute/get_block.rb
fog-0.3.26 lib/fog/bluebox/requests/compute/get_block.rb
fog-0.3.25 lib/fog/bluebox/requests/compute/get_block.rb
fog-0.3.24 lib/fog/bluebox/requests/compute/get_block.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/bluebox/requests/compute/get_block.rb