Class: Moderate::Services::IntakeNotice::NotifierRecipient
- Inherits:
-
Data
- Object
- Data
- Moderate::Services::IntakeNotice::NotifierRecipient
- Defined in:
- lib/moderate/services/intake_notice.rb
Overview
The anonymous-notifier recipient. Intentionally tiny and NOT a User: the
host's notify hook reaches recipient.email / recipient.name and nothing
else. Frozen value object.
Instance Method Summary collapse
-
#display_name ⇒ Object
Mirror the User-ish reader some host mailers reach for, so a notifier and a User are interchangeable at the
recipient.emailcall site.
Instance Method Details
#display_name ⇒ Object
Mirror the User-ish reader some host mailers reach for, so a notifier and a
User are interchangeable at the recipient.email call site.
128 |
# File 'lib/moderate/services/intake_notice.rb', line 128 def display_name = name.to_s.empty? ? email : name |