Module: Groonga::Client::Response::Searchable
- Includes:
- Enumerable
- Included in:
- LogicalRangeFilter, Select
- Defined in:
- lib/groonga/client/response/searchable.rb
Defined Under Namespace
Classes: Record
Instance Attribute Summary collapse
-
#raw_columns ⇒ Object
Returns the value of attribute raw_columns.
-
#raw_records ⇒ Object
Returns the value of attribute raw_records.
-
#records ⇒ Object
Returns the value of attribute records.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#limit_value ⇒ Object
For Kaminari.
-
#offset_value ⇒ Object
For Kaminari.
-
#size ⇒ Object
For Kaminari.
Instance Attribute Details
#raw_columns ⇒ Object
Returns the value of attribute raw_columns.
24 25 26 |
# File 'lib/groonga/client/response/searchable.rb', line 24 def raw_columns @raw_columns end |
#raw_records ⇒ Object
Returns the value of attribute raw_records.
25 26 27 |
# File 'lib/groonga/client/response/searchable.rb', line 25 def raw_records @raw_records end |
#records ⇒ Object
Returns the value of attribute records.
23 24 25 |
# File 'lib/groonga/client/response/searchable.rb', line 23 def records @records end |
Instance Method Details
#each(&block) ⇒ Object
42 43 44 |
# File 'lib/groonga/client/response/searchable.rb', line 42 def each(&block) records.each(&block) end |
#limit_value ⇒ Object
For Kaminari
28 29 30 |
# File 'lib/groonga/client/response/searchable.rb', line 28 def limit_value (@command[:limit] || 10).to_i end |
#offset_value ⇒ Object
For Kaminari
33 34 35 |
# File 'lib/groonga/client/response/searchable.rb', line 33 def offset_value (@command[:offset] || 0).to_i end |
#size ⇒ Object
For Kaminari
38 39 40 |
# File 'lib/groonga/client/response/searchable.rb', line 38 def size records.size end |