Module: MandrillBatchMailer

Includes:
ActiveSupport::Configurable
Defined in:
lib/mandrill_batch_mailer.rb,
lib/mandrill_batch_mailer/version.rb,
lib/mandrill_batch_mailer/base_mailer.rb

Defined Under Namespace

Classes: BaseMailer

Constant Summary collapse

ENDPOINT =
'https://mandrillapp.com/api/1.0/messages/'\
'send-template.json'
VERSION =
'1.2.0'

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#logger=(value) ⇒ Object (writeonly)

Sets the attribute logger

Parameters:

  • value

    the value to set the attribute logger to.



25
26
27
# File 'lib/mandrill_batch_mailer.rb', line 25

def logger=(value)
  @logger = value
end

Class Method Details

.loggerObject



27
28
29
# File 'lib/mandrill_batch_mailer.rb', line 27

def self.logger
  @logger ||= rails_logger || Logger.new(STDOUT)
end

.rails_loggerObject



31
32
33
# File 'lib/mandrill_batch_mailer.rb', line 31

def self.rails_logger
  defined?(Rails) && Rails.logger
end