Class: BaseListPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/base_list_presenter.rb

Direct Known Subclasses

ViewableListPresenter

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contextObject (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

#listObject (readonly)

Returns the value of attribute list.



2
3
4
# File 'app/presenters/base_list_presenter.rb', line 2

def list
  @list
end