Class: DigestNotifier::DigestProxy

Inherits:
ActiveSupport::BasicObject
Defined in:
lib/digest_notifier/message_sending.rb

Instance Method Summary collapse

Constructor Details

#initialize(target, options) ⇒ DigestProxy



6
7
8
9
# File 'lib/digest_notifier/message_sending.rb', line 6

def initialize(target, options)
  @target = target
  @options = options
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, @options)
end