Class: ActiveSupport::Notifications::Fanout::Subscribers::AllMessages

Inherits:
Object
  • Object
show all
Defined in:
lib/active_support/notifications/fanout.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(delegate) ⇒ AllMessages

Returns a new instance of AllMessages.



132
133
134
# File 'lib/active_support/notifications/fanout.rb', line 132

def initialize(delegate)
  @delegate = delegate
end

Instance Method Details

#finish(name, id, payload) ⇒ Object



140
141
142
# File 'lib/active_support/notifications/fanout.rb', line 140

def finish(name, id, payload)
  @delegate.finish name, id, payload
end

#publish(name, *args) ⇒ Object



144
145
146
# File 'lib/active_support/notifications/fanout.rb', line 144

def publish(name, *args)
  @delegate.publish name, *args
end

#start(name, id, payload) ⇒ Object



136
137
138
# File 'lib/active_support/notifications/fanout.rb', line 136

def start(name, id, payload)
  @delegate.start name, id, payload
end

#subscribed_to?(name) ⇒ Boolean

Returns:

  • (Boolean)


148
149
150
# File 'lib/active_support/notifications/fanout.rb', line 148

def subscribed_to?(name)
  true
end