class ActiveNotifier::Base::Configuration
Attributes
data[RW]
Public Class Methods
new()
click to toggle source
# File lib/active_notifier/base.rb, line 62 def initialize @data = { from: nil, email_attribute: nil, subject: nil, superclass: ActionMailer::Base } end
Public Instance Methods
method_missing(*args, &blk)
click to toggle source
Calls superclass method
# File lib/active_notifier/base.rb, line 73 def method_missing(*args, &blk) attribute, value = args if value.present? @data[attribute] = value elsif block_given? @data[attribute] = blk else @data.fetch attribute do super end end end
respond_to?(*args, &blk)
click to toggle source
Calls superclass method
# File lib/active_notifier/base.rb, line 86 def respond_to?(*args, &blk) attribute, value = args if value.present? true elsif block_given? true else @data.fetch attribute do super end end end