Module: Mailgun::Tracking::Subscriber

Defined in:
lib/mailgun/tracking/subscriber.rb,
lib/mailgun/tracking/subscriber/evented.rb,
lib/mailgun/tracking/subscriber/all_messages.rb

Overview

Namespace for classes that wraps subscribers.

Defined Under Namespace

Classes: AllMessages, Evented

Class Method Summary collapse

Class Method Details

.for(name, callable) ⇒ Mailgun::Tracking::Subscriber::Evented, Mailgun::Tracking::Subscriber::AllMessages

Determines the type of subscription.


15
16
17
18
19
20
21
# File 'lib/mailgun/tracking/subscriber.rb', line 15

def self.for(name, callable)
  if name
    Evented.new(name, callable)
  else
    AllMessages.new(callable)
  end
end