Class: Droonga::Searcher::ComplexRecordsFormatter

Inherits:
Object
  • Object
show all
Includes:
RecordsFormattable
Defined in:
lib/droonga/searcher.rb

Instance Method Summary collapse

Methods included from RecordsFormattable

#format_records, #record_value

Instance Method Details

#format_record(attributes, record) ⇒ Object



492
493
494
495
496
497
498
# File 'lib/droonga/searcher.rb', line 492

def format_record(attributes, record)
  values = {}
  attributes.each do |attribute|
    values[attribute[:label]] = record_value(record, attribute)
  end
  values
end