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.



31
32
33
34
# File 'lib/nifty-email.rb', line 31

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.



28
29
30
# File 'lib/nifty-email.rb', line 28

def html
  @html
end

#textObject (readonly)

Returns the value of attribute text.



29
30
31
# File 'lib/nifty-email.rb', line 29

def text
  @text
end