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.



215
216
217
# File 'lib/active_support/notifications/fanout.rb', line 215

def initialize(delegate)
  @delegate = delegate
end

Instance Method Details

#finish(name, id, payload) ⇒ Object



223
224
225
# File 'lib/active_support/notifications/fanout.rb', line 223

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

#publish(name, *args) ⇒ Object



227
228
229
# File 'lib/active_support/notifications/fanout.rb', line 227

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

#start(name, id, payload) ⇒ Object



219
220
221
# File 'lib/active_support/notifications/fanout.rb', line 219

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

#subscribed_to?(name) ⇒ Boolean

Returns:

  • (Boolean)


231
232
233
# File 'lib/active_support/notifications/fanout.rb', line 231

def subscribed_to?(name)
  true
end

#unsubscribe!Object



235
236
237
# File 'lib/active_support/notifications/fanout.rb', line 235

def unsubscribe!(*)
  false
end