Class: HasHelpers::Resource::RowPresenter
- Inherits:
-
BasePresenter
- Object
- BasePresenter
- HasHelpers::Resource::RowPresenter
- Defined in:
- app/presenters/has_helpers/resource/row_presenter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cells ⇒ Object
Returns the assigned value of
@cellsor items converted to cells. -
#current_user ⇒ Object
writeonly
Set
itemsas an alternative to settingcells. -
#is_child ⇒ Object
Returns the value of attribute is_child.
-
#is_primary ⇒ Object
Returns the value of attribute is_primary.
-
#is_section_header ⇒ Object
Returns the value of attribute is_section_header.
-
#items ⇒ Object
Returns the value of attribute items.
-
#service ⇒ Object
Returns the value of attribute service.
-
#template ⇒ Object
Returns the value of attribute template.
-
#toggle ⇒ Object
Returns the value of attribute toggle.
Attributes inherited from BasePresenter
Method Summary
Methods inherited from BasePresenter
#==, #error_on, #initialize, wrap, wrap_with_options
Methods included from Attributes
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
#cells ⇒ Object
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_child ⇒ Object
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_primary ⇒ Object
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_header ⇒ Object
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 |
#items ⇒ Object
Returns the value of attribute items.
4 5 6 |
# File 'app/presenters/has_helpers/resource/row_presenter.rb', line 4 def items @items end |
#service ⇒ Object
Returns the value of attribute service.
4 5 6 |
# File 'app/presenters/has_helpers/resource/row_presenter.rb', line 4 def service @service end |
#template ⇒ Object
Returns the value of attribute template.
4 5 6 |
# File 'app/presenters/has_helpers/resource/row_presenter.rb', line 4 def template @template end |
#toggle ⇒ Object
Returns the value of attribute toggle.
4 5 6 |
# File 'app/presenters/has_helpers/resource/row_presenter.rb', line 4 def toggle @toggle end |