Module: Sunrise::Models::FeedbackMessage::InstanceMethods

Defined in:
lib/sunrise/models/feedback_message.rb

Instance Method Summary collapse

Instance Method Details

#anonymous?Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/sunrise/models/feedback_message.rb', line 39

def anonymous?
  author.nil?
end

#email_address_with_nameObject



47
48
49
# File 'lib/sunrise/models/feedback_message.rb', line 47

def email_address_with_name
  "#{user_name} <#{user_email}>"
end

#siblingsObject



43
44
45
# File 'lib/sunrise/models/feedback_message.rb', line 43

def siblings
  self.class.siblings_for(self)
end