Class: AdvancedSearch::Adapters::PG::Query
- Inherits:
-
Object
- Object
- AdvancedSearch::Adapters::PG::Query
- Defined in:
- lib/advanced_search/adapters/pg/query.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(body, params) ⇒ Query
constructor
A new instance of Query.
Constructor Details
#initialize(body, params) ⇒ Query
Returns a new instance of Query.
5 6 7 8 |
# File 'lib/advanced_search/adapters/pg/query.rb', line 5 def initialize(body, params) @body = body @params = params.to_a end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
10 11 12 |
# File 'lib/advanced_search/adapters/pg/query.rb', line 10 def body @body end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
10 11 12 |
# File 'lib/advanced_search/adapters/pg/query.rb', line 10 def params @params end |