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

Instance Method Summary collapse

Instance Attribute Details

#raw_columnsObject

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_recordsObject

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

#recordsObject

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_valueObject

For Kaminari



28
29
30
# File 'lib/groonga/client/response/searchable.rb', line 28

def limit_value
  (@command[:limit] || 10).to_i
end

#offset_valueObject

For Kaminari



33
34
35
# File 'lib/groonga/client/response/searchable.rb', line 33

def offset_value
  (@command[:offset] || 0).to_i
end

#sizeObject

For Kaminari



38
39
40
# File 'lib/groonga/client/response/searchable.rb', line 38

def size
  records.size
end