Class: Riak::ListBuckets

Inherits:
Object show all
Defined in:
lib/riak/list_buckets.rb

Instance Method Summary collapse

Constructor Details

#initialize(client, options, block) ⇒ ListBuckets

Returns a new instance of ListBuckets.



3
4
5
6
7
8
# File 'lib/riak/list_buckets.rb', line 3

def initialize(client, options, block)
  @client = client
  @block = block
  @options = options
  perform_request
end

Instance Method Details

#perform_requestObject



10
11
12
13
14
# File 'lib/riak/list_buckets.rb', line 10

def perform_request
  @client.backend do |be|
    be.list_buckets @options, &wrapped_block
  end
end