Class: RiakJson::Query
- Inherits:
-
Object
- Object
- RiakJson::Query
- Defined in:
- lib/riak_json/query.rb
Overview
Query helper object Provides a DSL for building json queries to collections
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
Class Method Summary collapse
-
.from_json(json) ⇒ Object
Create a Query object instance with a custom-built query.
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
25 26 27 |
# File 'lib/riak_json/query.rb', line 25 def body @body end |
Class Method Details
.from_json(json) ⇒ Object
Create a Query object instance with a custom-built query
28 29 30 31 32 |
# File 'lib/riak_json/query.rb', line 28 def self.from_json(json) query = RiakJson::Query.new query.body = json query end |