Module: Unitpay::Controller
- Defined in:
- lib/unitpay/controller.rb
Defined Under Namespace
Classes: ErrorMethodNotImplemented, PayMethodNotImplemented, RuntimeException, ServiceNotImplemented
Instance Method Summary
collapse
Instance Method Details
#fail ⇒ Object
26
27
28
|
# File 'lib/unitpay/controller.rb', line 26
def fail
warn 'NotImplementedError'
end
|
#notify ⇒ Object
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/unitpay/controller.rb', line 11
def notify
if service.valid_action_signature?(params[:method], params[:params])
send(params[:method])
success_request
else
fail_request
end
rescue RuntimeException => e
fail_request(e.message)
end
|
#success ⇒ Object
22
23
24
|
# File 'lib/unitpay/controller.rb', line 22
def success
warn 'NotImplementedError'
end
|