Class: OmniHooks::Strategy::NotificationAdapter
- Inherits:
-
Struct
- Object
- Struct
- OmniHooks::Strategy::NotificationAdapter
- Defined in:
- lib/omnihooks/strategy.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
160 161 162 |
# File 'lib/omnihooks/strategy.rb', line 160 def subscriber @subscriber end |
Class Method Details
.call(callable) ⇒ Object
161 162 163 |
# File 'lib/omnihooks/strategy.rb', line 161 def self.call(callable) new(callable) end |
Instance Method Details
#call(*args) ⇒ Object
165 166 167 168 |
# File 'lib/omnihooks/strategy.rb', line 165 def call(*args) payload = args.last subscriber.call(payload) end |