Module: Pacer::Filter::TitanQuery
- Defined in:
- lib/pacer-titan/titan_query.rb
Instance Attribute Summary collapse
-
#query ⇒ Object
Returns the value of attribute query.
-
#top ⇒ Object
Returns the value of attribute top.
Instance Method Summary collapse
Instance Attribute Details
#query ⇒ Object
Returns the value of attribute query.
19 20 21 |
# File 'lib/pacer-titan/titan_query.rb', line 19 def query @query end |
#top ⇒ Object
Returns the value of attribute top.
19 20 21 |
# File 'lib/pacer-titan/titan_query.rb', line 19 def top @top end |
Instance Method Details
#count ⇒ Object
26 27 28 |
# File 'lib/pacer-titan/titan_query.rb', line 26 def count query_result.count end |
#top_hits(n) ⇒ Object
21 22 23 24 |
# File 'lib/pacer-titan/titan_query.rb', line 21 def top_hits(n) self.top = n self end |