Class: MonkeyMailer::Email
- Inherits:
-
Object
- Object
- MonkeyMailer::Email
- Defined in:
- lib/monkey-mailer/email.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#from_email ⇒ Object
Returns the value of attribute from_email.
-
#from_name ⇒ Object
Returns the value of attribute from_name.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#to_email ⇒ Object
Returns the value of attribute to_email.
-
#to_name ⇒ Object
Returns the value of attribute to_name.
Instance Method Summary collapse
-
#initialize(hash = nil) ⇒ Email
constructor
A new instance of Email.
Constructor Details
#initialize(hash = nil) ⇒ Email
Returns a new instance of Email.
6 7 8 9 10 |
# File 'lib/monkey-mailer/email.rb', line 6 def initialize(hash=nil) unless hash.nil? hash.each_pair{|key, value| self.send("#{key}=", value)} end end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
4 5 6 |
# File 'lib/monkey-mailer/email.rb', line 4 def body @body end |
#from_email ⇒ Object
Returns the value of attribute from_email.
4 5 6 |
# File 'lib/monkey-mailer/email.rb', line 4 def from_email @from_email end |
#from_name ⇒ Object
Returns the value of attribute from_name.
4 5 6 |
# File 'lib/monkey-mailer/email.rb', line 4 def from_name @from_name end |
#priority ⇒ Object
Returns the value of attribute priority.
4 5 6 |
# File 'lib/monkey-mailer/email.rb', line 4 def priority @priority end |
#subject ⇒ Object
Returns the value of attribute subject.
4 5 6 |
# File 'lib/monkey-mailer/email.rb', line 4 def subject @subject end |
#to_email ⇒ Object
Returns the value of attribute to_email.
4 5 6 |
# File 'lib/monkey-mailer/email.rb', line 4 def to_email @to_email end |
#to_name ⇒ Object
Returns the value of attribute to_name.
4 5 6 |
# File 'lib/monkey-mailer/email.rb', line 4 def to_name @to_name end |