Class: AlphaMail::Contact
- Inherits:
-
Object
- Object
- AlphaMail::Contact
- Defined in:
- lib/alphamail.rb
Overview
Email contact class
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name = '', email = '') ⇒ Contact
constructor
A new instance of Contact.
Constructor Details
#initialize(name = '', email = '') ⇒ Contact
Returns a new instance of Contact.
24 25 26 27 |
# File 'lib/alphamail.rb', line 24 def initialize(name = '', email = '') @name = name @email = email end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
22 23 24 |
# File 'lib/alphamail.rb', line 22 def email @email end |
#name ⇒ Object
Returns the value of attribute name.
21 22 23 |
# File 'lib/alphamail.rb', line 21 def name @name end |