Class: DigestNotifier::DigestProxy
- Inherits:
- ActiveSupport::BasicObject
- Defined in:
- lib/digest_notifier/message_sending.rb
Instance Method Summary collapse
-
#initialize(target, options) ⇒ DigestProxy
constructor
A new instance of DigestProxy.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(target, options) ⇒ DigestProxy
6 7 8 9 |
# File 'lib/digest_notifier/message_sending.rb', line 6 def initialize(target, ) @target = target = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
11 12 13 |
# File 'lib/digest_notifier/message_sending.rb', line 11 def method_missing(method, *args) DigestEmailGroup.enqueue PerformableDigest.new(@target, method.to_sym, args, ) end |