Class: Blodsband::Riak
- Inherits:
-
Object
- Object
- Blodsband::Riak
- Defined in:
- lib/blodsband/riak.rb,
lib/blodsband/riak/mr.rb,
lib/blodsband/riak/map.rb,
lib/blodsband/riak/list.rb,
lib/blodsband/riak/lock.rb,
lib/blodsband/riak/sset.rb,
lib/blodsband/riak/bucket.rb,
lib/blodsband/riak/search.rb,
lib/blodsband/riak/counter.rb,
lib/blodsband/riak/response.rb
Defined Under Namespace
Modules: Response Classes: Bucket, Counter, List, Lock, Map, Mr, Search, Sset
Instance Method Summary collapse
-
#bucket(name, options = {}) ⇒ Blodsband::Riak::Bucket
Get a Bucket.
-
#initialize(url) ⇒ Riak
constructor
Initialize a Riak client.
-
#mr ⇒ Blodsband::Riak::Mr
Get a map/reduce helper instance.
-
#search ⇒ Blodsband::Riak::Search
Get a Search.
Constructor Details
#initialize(url) ⇒ Riak
Initialize a Riak client.
10 11 12 |
# File 'lib/blodsband/riak.rb', line 10 def initialize(url) @url = url end |
Instance Method Details
#bucket(name, options = {}) ⇒ Blodsband::Riak::Bucket
Get a Bucket.
22 23 24 |
# File 'lib/blodsband/riak.rb', line 22 def bucket(name, = {}) Bucket.new(@url, name, ) end |
#mr ⇒ Blodsband::Riak::Mr
Get a map/reduce helper instance.
42 43 44 |
# File 'lib/blodsband/riak.rb', line 42 def mr Mr.new(@url) end |
#search ⇒ Blodsband::Riak::Search
Get a Search
33 34 35 |
# File 'lib/blodsband/riak.rb', line 33 def search Search.new(@url) end |