Class: UserPresenter
- Inherits:
-
Object
- Object
- UserPresenter
- Defined in:
- app/presenters/user_presenter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
- #access_type ⇒ Object
- #display_name ⇒ Object
-
#initialize(user) ⇒ UserPresenter
constructor
A new instance of UserPresenter.
Constructor Details
#initialize(user) ⇒ UserPresenter
Returns a new instance of UserPresenter.
7 8 9 |
# File 'app/presenters/user_presenter.rb', line 7 def initialize(user) @user = user end |
Instance Attribute Details
#user ⇒ Object (readonly)
Returns the value of attribute user.
3 4 5 |
# File 'app/presenters/user_presenter.rb', line 3 def user @user end |
Instance Method Details
#access_type ⇒ Object
15 16 17 |
# File 'app/presenters/user_presenter.rb', line 15 def access_type "Data User - Read Only" end |
#display_name ⇒ Object
11 12 13 |
# File 'app/presenters/user_presenter.rb', line 11 def display_name user.display_name_only_safe end |