Class: AdvancedSearch::Adapters::PG::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/advanced_search/adapters/pg/query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



10
11
12
# File 'lib/advanced_search/adapters/pg/query.rb', line 10

def body
  @body
end

#paramsObject (readonly)

Returns the value of attribute params.



10
11
12
# File 'lib/advanced_search/adapters/pg/query.rb', line 10

def params
  @params
end