Method: PostageApp::Mailer#initialize

Defined in:
lib/postageapp/mailer/mailer_3.rb,
lib/postageapp/mailer/mailer_4.rb

#initialize(method_name = nil, *args) ⇒ Mailer

Instead of initializing Mail object, we prepare PostageApp::Request



64
65
66
67
68
69
70
71
72
# File 'lib/postageapp/mailer/mailer_3.rb', line 64

def initialize(method_name = nil, *args)
  super()

  @_message = PostageApp::Request.new(:send_message)

  if method_name
    process(method_name, *args)
  end
end