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

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(delegate) ⇒ AllMessages

Returns a new instance of AllMessages.


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

def initialize(delegate)
  @delegate = delegate
end

Instance Method Details

#finish(name, id, payload) ⇒ Object


242
243
244
# File 'activesupport/lib/active_support/notifications/fanout.rb', line 242

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

#publish(name, *args) ⇒ Object


246
247
248
# File 'activesupport/lib/active_support/notifications/fanout.rb', line 246

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

#start(name, id, payload) ⇒ Object


238
239
240
# File 'activesupport/lib/active_support/notifications/fanout.rb', line 238

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

#subscribed_to?(name) ⇒ Boolean

Returns:

  • (Boolean)

250
251
252
# File 'activesupport/lib/active_support/notifications/fanout.rb', line 250

def subscribed_to?(name)
  true
end

#unsubscribe!Object


254
255
256
# File 'activesupport/lib/active_support/notifications/fanout.rb', line 254

def unsubscribe!(*)
  false
end