Class: Locomotive::AccountPresenter
- Inherits:
-
BasePresenter
- Object
- BasePresenter
- Locomotive::AccountPresenter
- Defined in:
- app/presenters/locomotive/account_presenter.rb
Instance Attribute Summary
Attributes inherited from BasePresenter
Instance Method Summary collapse
-
#admin ⇒ Object
other getters / setters ##.
-
#name ⇒ Object
properties ##.
Methods inherited from BasePresenter
#ability?, #after_initialize, getters_to_hash, #id, setters_to_hash, #site
Methods included from Presentable
#after_initialize, #as_json, #attributes=, #getters, #initialize, #property_options, #setters
Instance Method Details
#admin ⇒ Object
other getters / setters ##
14 15 16 |
# File 'app/presenters/locomotive/account_presenter.rb', line 14 def admin self.source.admin? end |
#name ⇒ Object
properties ##
5 |
# File 'app/presenters/locomotive/account_presenter.rb', line 5 properties :name, :email, :locale |