Class: Zm::Client::Recipient

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameObject

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

#emailObject

Returns the value of attribute email.



58
59
60
# File 'lib/zm/client/common/recipients.rb', line 58

def email
  @email
end

#fieldObject

Returns the value of attribute field.



58
59
60
# File 'lib/zm/client/common/recipients.rb', line 58

def field
  @field
end