Module: QC::Mailer::ClassMethods
- Defined in:
- lib/qc-mailer.rb
Overview
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object
37
38
39
40
41
42
43
|
# File 'lib/qc-mailer.rb', line 37
def method_missing(method_name, *args)
if action_methods.include?(method_name.to_s)
MessageDecoy.new(self, method_name, *args)
else
super
end
end
|
Instance Method Details
#deliver(method, *args) ⇒ Object
33
34
35
|
# File 'lib/qc-mailer.rb', line 33
def deliver(method, *args)
send(method, *args).deliver!
end
|
#queue ⇒ Object
29
30
31
|
# File 'lib/qc-mailer.rb', line 29
def queue
@queue ||= QC::Queue.new(queue_name)
end
|
#queue_name=(val) ⇒ Object
25
26
27
|
# File 'lib/qc-mailer.rb', line 25
def queue_name=(val)
@queue_name = val
end
|