Class: Golden::QueryRecordPresenter
- Inherits:
-
ApplicationPresenter
- Object
- ApplicationPresenter
- Golden::QueryRecordPresenter
- Defined in:
- lib/golden/objects/query/query_record_presenter.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(record, accessors = {}) ⇒ QueryRecordPresenter
constructor
A new instance of QueryRecordPresenter.
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 |