Class: Messaged::NullUser
- Inherits:
-
Object
- Object
- Messaged::NullUser
- Defined in:
- app/models/messaged/null_user.rb
Instance Method Summary collapse
Instance Method Details
#email ⇒ Object
7 8 9 |
# File 'app/models/messaged/null_user.rb', line 7 def email nil end |
#id ⇒ Object
3 4 5 |
# File 'app/models/messaged/null_user.rb', line 3 def id nil end |
#messaged_anonymous? ⇒ Boolean
19 20 21 |
# File 'app/models/messaged/null_user.rb', line 19 def true end |
#name ⇒ Object
11 12 13 |
# File 'app/models/messaged/null_user.rb', line 11 def name I18n.t('messaged.null_user_name') end |
#valid? ⇒ Boolean
15 16 17 |
# File 'app/models/messaged/null_user.rb', line 15 def valid? false end |