Class: PaypalEvent::NotificationAdapter
- Inherits:
-
Struct
- Object
- Struct
- PaypalEvent::NotificationAdapter
- Defined in:
- lib/paypal_event.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
49 50 51 |
# File 'lib/paypal_event.rb', line 49 def subscriber @subscriber end |
Class Method Details
.call(callable) ⇒ Object
50 51 52 |
# File 'lib/paypal_event.rb', line 50 def self.call(callable) new(callable) end |
Instance Method Details
#call(*args) ⇒ Object
54 55 56 57 |
# File 'lib/paypal_event.rb', line 54 def call(*args) payload = args.last subscriber.call(payload) end |