class MassMandrill::MandrillMail
Attributes
message[R]
template_content[R]
Public Class Methods
new(template_name, template_content, message)
click to toggle source
# File lib/mass_mandrill/mandrill_mail.rb, line 7 def initialize(template_name, template_content, message) @template_name = template_name @template_content = template_content @message = message @mandrill = ::Mandrill::API.new end
Public Instance Methods
deliver()
click to toggle source
# File lib/mass_mandrill/mandrill_mail.rb, line 15 def deliver @mandrill.messages.send_template(@template_name, @template_content, @message) end