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.



17
18
19
20
21
22
# File 'lib/riak/list_buckets.rb', line 17

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

Instance Method Details

#perform_requestObject



24
25
26
27
28
# File 'lib/riak/list_buckets.rb', line 24

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