Class: BaseListPresenter
- Inherits:
-
Object
- Object
- BaseListPresenter
- Defined in:
- app/presenters/base_list_presenter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#context ⇒ Object
(also: #h)
readonly
Returns the value of attribute context.
-
#list ⇒ Object
readonly
Returns the value of attribute list.
Instance Method Summary collapse
-
#initialize(list, context) ⇒ BaseListPresenter
constructor
A new instance of BaseListPresenter.
Constructor Details
#initialize(list, context) ⇒ BaseListPresenter
Returns a new instance of BaseListPresenter.
39 40 41 |
# File 'app/presenters/base_list_presenter.rb', line 39 def initialize(list, context) @list, @context = list, context end |
Instance Attribute Details
#context ⇒ Object (readonly) Also known as: h
Returns the value of attribute context.
2 3 4 |
# File 'app/presenters/base_list_presenter.rb', line 2 def context @context end |
#list ⇒ Object (readonly)
Returns the value of attribute list.
2 3 4 |
# File 'app/presenters/base_list_presenter.rb', line 2 def list @list end |