class PostmarkMailer::Base
Attributes
action_name[RW]
Public Class Methods
new(method_name = nil)
click to toggle source
# File lib/postmark_mailer/base.rb, line 23 def initialize(method_name = nil) @action_name = method_name end
Private Class Methods
method_missing(method, *args)
click to toggle source
Calls superclass method
# File lib/postmark_mailer/base.rb, line 12 def method_missing(method, *args) if respond_to_missing?(method) new(method.to_s).public_send(method, *args) else super end end
respond_to_missing?(method, *)
click to toggle source
Calls superclass method
# File lib/postmark_mailer/base.rb, line 8 def respond_to_missing?(method, *) new.respond_to?(method) || super end
Private Instance Methods
mail(options)
click to toggle source
# File lib/postmark_mailer/base.rb, line 27 def mail(options) if prevent_delivery? NullDelivery.new(options) else MessageDelivery.new(options) end end
prevent_delivery?()
click to toggle source
# File lib/postmark_mailer/base.rb, line 35 def prevent_delivery?; end