Class: PluckMap::Presenter
- Inherits:
-
Object
- Object
- PluckMap::Presenter
- Includes:
- CsvPresenter, HashPresenter, JsonPresenter
- Defined in:
- lib/pluck_map/presenter.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(model, attributes) ⇒ Presenter
constructor
A new instance of Presenter.
Methods included from CsvPresenter
Methods included from HashPresenter
Methods included from JsonPresenter
Constructor Details
#initialize(model, attributes) ⇒ Presenter
Returns a new instance of Presenter.
14 15 16 17 |
# File 'lib/pluck_map/presenter.rb', line 14 def initialize(model, attributes) @model = model @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
12 13 14 |
# File 'lib/pluck_map/presenter.rb', line 12 def attributes @attributes end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
12 13 14 |
# File 'lib/pluck_map/presenter.rb', line 12 def model @model end |