Class: IngramMicroEngine::NotificationAdapter
- Inherits:
-
Struct
- Object
- Struct
- IngramMicroEngine::NotificationAdapter
- Defined in:
- lib/ingram_micro_engine.rb
Instance Attribute Summary collapse
-
#subscriber ⇒ Object
Returns the value of attribute subscriber.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#subscriber ⇒ Object
Returns the value of attribute subscriber
41 42 43 |
# File 'lib/ingram_micro_engine.rb', line 41 def subscriber @subscriber end |
Class Method Details
.call(callable) ⇒ Object
42 43 44 |
# File 'lib/ingram_micro_engine.rb', line 42 def self.call(callable) new(callable) end |
Instance Method Details
#call(*args) ⇒ Object
46 47 48 49 |
# File 'lib/ingram_micro_engine.rb', line 46 def call(*args) payload = args.last subscriber.call(payload) end |