Class: QuotesHelper::QuoteRecipientPerson
- Inherits:
-
Data
- Object
- Data
- QuotesHelper::QuoteRecipientPerson
- Defined in:
- app/helpers/quotes_helper.rb
Overview
A person who could receive / manage the online quote: the customer and
each of its contacts, with their email + whether they have an online
account (so they could log in). Only people who can log in and have an
email address are selectable as recipients on the transmit screen.
Instance Attribute Summary collapse
-
#can_login ⇒ Object
readonly
Returns the value of attribute can_login.
-
#email_contact_point ⇒ Object
readonly
Returns the value of attribute email_contact_point.
-
#party ⇒ Object
readonly
Returns the value of attribute party.
-
#preselected ⇒ Object
readonly
Returns the value of attribute preselected.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
- #email ⇒ Object
- #name ⇒ Object
-
#selectable? ⇒ Boolean
Selectable as an email recipient = has an email on file.
Instance Attribute Details
#can_login ⇒ Object (readonly)
Returns the value of attribute can_login
186 187 188 |
# File 'app/helpers/quotes_helper.rb', line 186 def can_login @can_login end |
#email_contact_point ⇒ Object (readonly)
Returns the value of attribute email_contact_point
186 187 188 |
# File 'app/helpers/quotes_helper.rb', line 186 def email_contact_point @email_contact_point end |
#party ⇒ Object (readonly)
Returns the value of attribute party
186 187 188 |
# File 'app/helpers/quotes_helper.rb', line 186 def party @party end |
#preselected ⇒ Object (readonly)
Returns the value of attribute preselected
186 187 188 |
# File 'app/helpers/quotes_helper.rb', line 186 def preselected @preselected end |
#role ⇒ Object (readonly)
Returns the value of attribute role
186 187 188 |
# File 'app/helpers/quotes_helper.rb', line 186 def role @role end |
Instance Method Details
#email ⇒ Object
188 189 190 191 |
# File 'app/helpers/quotes_helper.rb', line 188 def email = email_contact_point&.detail # Selectable as an email recipient = has an email on file. Login is no # longer required — the online quote is read-only, so a recipient just # needs a mailbox to receive the link, not an account to manage it. |
#name ⇒ Object
187 |
# File 'app/helpers/quotes_helper.rb', line 187 def name = party.full_name |
#selectable? ⇒ Boolean
Selectable as an email recipient = has an email on file. Login is no
longer required — the online quote is read-only, so a recipient just
needs a mailbox to receive the link, not an account to manage it.
192 |
# File 'app/helpers/quotes_helper.rb', line 192 def selectable? = email_contact_point.present? |