Class: Riak::ListBuckets
Instance Method Summary collapse
-
#initialize(client, options, block) ⇒ ListBuckets
constructor
A new instance of ListBuckets.
- #perform_request ⇒ Object
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, , block) @client = client @block = block @options = perform_request end |
Instance Method Details
#perform_request ⇒ Object
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 |