Module: Statisfy::Subscriber
- Defined in:
- lib/statisfy/subscriber.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#perform(resource_or_hash) ⇒ Object
This is the method that will be called when an event is triggered It will be executed in the background by Sidekiq.
Class Method Details
.included(klass) ⇒ Object
3 4 5 |
# File 'lib/statisfy/subscriber.rb', line 3 def self.included(klass) klass.extend(ClassMethods) end |
Instance Method Details
#perform(resource_or_hash) ⇒ Object
This is the method that will be called when an event is triggered It will be executed in the background by Sidekiq
83 84 85 86 |
# File 'lib/statisfy/subscriber.rb', line 83 def perform(resource_or_hash) @params = resource_or_hash process_event end |