Class: Golden::QueryRecordPresenter

Inherits:
ApplicationPresenter show all
Defined in:
lib/golden/objects/query/query_record_presenter.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record, accessors = {}) ⇒ QueryRecordPresenter

Returns a new instance of QueryRecordPresenter.



11
12
13
14
# File 'lib/golden/objects/query/query_record_presenter.rb', line 11

def initialize(record, accessors = {})
  super(accessors)
  @record = record
end

Class Method Details

.collect(records) ⇒ Object



6
7
8
# File 'lib/golden/objects/query/query_record_presenter.rb', line 6

def collect(records)
  ::Golden::QueryResultPresenter.collect(records, name)
end