Class: HasHelpers::Resource::RowPresenter

Inherits:
BasePresenter show all
Defined in:
app/presenters/has_helpers/resource/row_presenter.rb

Direct Known Subclasses

EmailPresenter

Instance Attribute Summary collapse

Attributes inherited from BasePresenter

#errors, #wrapped_object

Method Summary

Methods inherited from BasePresenter

#==, #error_on, #initialize, wrap, wrap_with_options

Methods included from Attributes

included

Constructor Details

This class inherits a constructor from HasHelpers::BasePresenter

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class HasHelpers::BasePresenter

Instance Attribute Details

#cellsObject

Returns the assigned value of @cells or items converted to cells.



16
17
18
# File 'app/presenters/has_helpers/resource/row_presenter.rb', line 16

def cells
  @cells ||= items_to_cells
end

#current_user=(value) ⇒ Object (writeonly)

Set items as an alternative to setting cells



12
13
14
# File 'app/presenters/has_helpers/resource/row_presenter.rb', line 12

def current_user=(value)
  @current_user = value
end

#is_childObject

Returns the value of attribute is_child.



4
5
6
# File 'app/presenters/has_helpers/resource/row_presenter.rb', line 4

def is_child
  @is_child
end

#is_primaryObject

Returns the value of attribute is_primary.



4
5
6
# File 'app/presenters/has_helpers/resource/row_presenter.rb', line 4

def is_primary
  @is_primary
end

#is_section_headerObject

Returns the value of attribute is_section_header.



4
5
6
# File 'app/presenters/has_helpers/resource/row_presenter.rb', line 4

def is_section_header
  @is_section_header
end

#itemsObject

Returns the value of attribute items.



4
5
6
# File 'app/presenters/has_helpers/resource/row_presenter.rb', line 4

def items
  @items
end

#serviceObject

Returns the value of attribute service.



4
5
6
# File 'app/presenters/has_helpers/resource/row_presenter.rb', line 4

def service
  @service
end

#templateObject

Returns the value of attribute template.



4
5
6
# File 'app/presenters/has_helpers/resource/row_presenter.rb', line 4

def template
  @template
end

#toggleObject

Returns the value of attribute toggle.



4
5
6
# File 'app/presenters/has_helpers/resource/row_presenter.rb', line 4

def toggle
  @toggle
end