Class: PaypalEvent::NotificationAdapter

Inherits:
Struct
  • Object
show all
Defined in:
lib/paypal_event.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#subscriberObject

Returns the value of attribute subscriber

Returns:

  • (Object)

    the current value of 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