Class: MessageClient::Mailer

Inherits:
Object
  • Object
show all
Defined in:
lib/message_client/mailer.rb

Constant Summary collapse

HTML_RAW_TEMPLATE =
'raw-html-integration'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(values) ⇒ Mailer

Returns a new instance of Mailer.



11
12
13
# File 'lib/message_client/mailer.rb', line 11

def initialize(values)
  build_settings(values)
end

Instance Attribute Details

#settingsObject

Returns the value of attribute settings.



9
10
11
# File 'lib/message_client/mailer.rb', line 9

def settings
  @settings
end

Instance Method Details

#deliver!(mail) ⇒ Object



15
16
17
18
19
# File 'lib/message_client/mailer.rb', line 15

def deliver!(mail)
  message = build_message(mail)

  send_message(message)
end