Class: Zm::Client::Recipient
- Inherits:
-
Object
- Object
- Zm::Client::Recipient
- Defined in:
- lib/zm/client/common/recipients.rb
Overview
Class one recipient for email
Constant Summary collapse
- FROM =
:f
- TO =
:t
- CC =
:c
- BCC =
:b
Instance Attribute Summary collapse
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#email ⇒ Object
Returns the value of attribute email.
-
#field ⇒ Object
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(field, email, display_name = nil) ⇒ Recipient
constructor
A new instance of Recipient.
Constructor Details
#initialize(field, email, display_name = nil) ⇒ Recipient
Returns a new instance of Recipient.
60 61 62 63 64 |
# File 'lib/zm/client/common/recipients.rb', line 60 def initialize(field, email, display_name = nil) @email = email @field = field.to_sym @display_name = display_name end |
Instance Attribute Details
#display_name ⇒ Object
Returns the value of attribute display_name.
58 59 60 |
# File 'lib/zm/client/common/recipients.rb', line 58 def display_name @display_name end |
#email ⇒ Object
Returns the value of attribute email.
58 59 60 |
# File 'lib/zm/client/common/recipients.rb', line 58 def email @email end |
#field ⇒ Object
Returns the value of attribute field.
58 59 60 |
# File 'lib/zm/client/common/recipients.rb', line 58 def field @field end |