Class: Locomotive::AccountPresenter

Inherits:
BasePresenter show all
Defined in:
app/presenters/locomotive/account_presenter.rb

Instance Attribute Summary

Attributes inherited from BasePresenter

#__ability, #__depth

Instance Method Summary collapse

Methods inherited from BasePresenter

#_id, #ability?, #after_initialize, #errors, #formatted_time, getters_or_setters_to_hash, getters_to_hash, #html_view?, #include_errors?, setters_to_hash, #site, #true

Methods included from Presentable

#after_initialize, #as_json, #attributes=, #getters, #initialize, #property_options, #setters

Instance Method Details

#adminObject

other getters / setters ##



14
15
16
# File 'app/presenters/locomotive/account_presenter.rb', line 14

def admin
  self.__source.admin?
end

#nameObject

properties ##



5
# File 'app/presenters/locomotive/account_presenter.rb', line 5

properties  :name, :email, :locale, :encrypted_password, :password_salt, :api_key