Class: EvilEvents::Core::Events::Notifier::Worker::Job Private
- Inherits:
-
Object
- Object
- EvilEvents::Core::Events::Notifier::Worker::Job
- Defined in:
- lib/evil_events/core/events/notifier/worker/job.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
since 0.3.0
Instance Attribute Summary collapse
- #event ⇒ EvilEvents::Core::Events::AbstractEvent readonly private
- #subscriber ⇒ EvilEvents::Core::Events::Subscriber readonly private
Instance Method Summary collapse
-
#initialize(event, subscriber) ⇒ Job
constructor
private
A new instance of Job.
-
#perform ⇒ Object
private
Void.
Constructor Details
#initialize(event, subscriber) ⇒ Job
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Job.
23 24 25 26 |
# File 'lib/evil_events/core/events/notifier/worker/job.rb', line 23 def initialize(event, subscriber) @event = event @subscriber = subscriber end |
Instance Attribute Details
#event ⇒ EvilEvents::Core::Events::AbstractEvent (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'lib/evil_events/core/events/notifier/worker/job.rb', line 16 def event @event end |
#subscriber ⇒ EvilEvents::Core::Events::Subscriber (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/evil_events/core/events/notifier/worker/job.rb', line 10 def subscriber @subscriber end |
Instance Method Details
#perform ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns void.
32 33 34 |
# File 'lib/evil_events/core/events/notifier/worker/job.rb', line 32 def perform subscriber.notify(event) end |