Module: PayURails
- Defined in:
- lib/pay_u_rails.rb,
lib/pay_u_rails/engine.rb,
lib/pay_u_rails/errors.rb,
lib/pay_u_rails/version.rb
Defined Under Namespace
Classes: Confirmation, Engine, Response, SignatureVerificationError, WebhooksController
Constant Summary
collapse
- VERSION =
"1.0.3".freeze
Class Method Summary
collapse
Class Method Details
.instrument(event, payload) ⇒ Object
16
17
18
|
# File 'lib/pay_u_rails.rb', line 16
def self.instrument(event, payload)
ActiveSupport::Notifications.instrument(event, payload)
end
|
.subscribe(event, callable = Proc.new) ⇒ Object
21
22
23
24
25
|
# File 'lib/pay_u_rails.rb', line 21
def self.subscribe(event, callable = Proc.new)
ActiveSupport::Notifications.subscribe(event) do |*args|
callable.call(args.[:resource])
end
end
|