Class: AlphaMail::Contact

Inherits:
Object
  • Object
show all
Defined in:
lib/alphamail.rb

Overview

Email contact class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = '', email = '') ⇒ Contact



24
25
26
27
# File 'lib/alphamail.rb', line 24

def initialize(name = '', email = '')
  @name = name
  @email = email
end

Instance Attribute Details

#emailObject

Returns the value of attribute email.



22
23
24
# File 'lib/alphamail.rb', line 22

def email
  @email
end

#nameObject

Returns the value of attribute name.



21
22
23
# File 'lib/alphamail.rb', line 21

def name
  @name
end