Class: SendgridCliMailer::Runner
- Inherits:
-
Object
- Object
- SendgridCliMailer::Runner
- Defined in:
- lib/sendgrid_cli_mailer.rb
Overview
other code can go here
Instance Method Summary collapse
-
#initialize(mailer_settings, options, body) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
#initialize(mailer_settings, options, body) ⇒ Runner
Returns a new instance of Runner.
5 6 7 8 |
# File 'lib/sendgrid_cli_mailer.rb', line 5 def initialize(mailer_settings,,body) SendgridToolkit::Mail.new(mailer_settings['user'], mailer_settings['key']).send_mail :to => [:to], :from => mailer_settings['from'], :subject => [:subject], :text => body end |