Sha256: 30873e021676ade27327b7be94e8e3cefb6a31e0b1221b10d06f954538879a8d

Contents?: true

Size: 567 Bytes

Versions: 36

Compression:

Stored size: 567 Bytes

Contents

module Fog
  module Bluebox
    class Real

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

    end

    class Mock

      def destroy_block(block_id)
        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/destroy_block.rb
fog-0.2.28 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.27 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.26 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.25 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.24 lib/fog/bluebox/requests/destroy_block.rb
tecnh-fog-0.2.23.vpc lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.23 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.22 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.21 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.20 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.19 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.18 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.17 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.16 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.15 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.14 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.13 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.12 lib/fog/bluebox/requests/destroy_block.rb
fog-0.2.11 lib/fog/bluebox/requests/destroy_block.rb