Class: Messaged::NullUser

Inherits:
Object
  • Object
show all
Defined in:
app/models/messaged/null_user.rb

Instance Method Summary collapse

Instance Method Details

#emailObject



7
8
9
# File 'app/models/messaged/null_user.rb', line 7

def email
  nil
end

#idObject



3
4
5
# File 'app/models/messaged/null_user.rb', line 3

def id
  nil
end

#messaged_anonymous?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/models/messaged/null_user.rb', line 19

def messaged_anonymous?
  true
end

#nameObject



11
12
13
# File 'app/models/messaged/null_user.rb', line 11

def name
  I18n.t('messaged.null_user_name')
end

#valid?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'app/models/messaged/null_user.rb', line 15

def valid?
  false
end