Class: NiftyEmail::Email

Inherits:
Object
  • Object
show all
Defined in:
lib/nifty-email.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#htmlObject (readonly)

Returns the value of attribute html.



24
25
26
# File 'lib/nifty-email.rb', line 24

def html
  @html
end

#textObject (readonly)

Returns the value of attribute text.



25
26
27
# File 'lib/nifty-email.rb', line 25

def text
  @text
end