Class: NiftyEmail::Email
- Inherits:
-
Object
- Object
- NiftyEmail::Email
- Defined in:
- lib/nifty-email.rb
Instance Attribute Summary collapse
-
#html ⇒ Object
readonly
Returns the value of attribute html.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(email_parts) ⇒ Email
constructor
A new instance of Email.
Constructor Details
#initialize(email_parts) ⇒ Email
Returns a new instance of Email.
27 28 29 30 |
# File 'lib/nifty-email.rb', line 27 def initialize(email_parts) @html = email_parts.fetch('html') @text = email_parts.fetch('text') end |
Instance Attribute Details
#html ⇒ Object (readonly)
Returns the value of attribute html.
24 25 26 |
# File 'lib/nifty-email.rb', line 24 def html @html end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
25 26 27 |
# File 'lib/nifty-email.rb', line 25 def text @text end |