class Vonage::Verify
Public Instance Methods
cancel(id)
click to toggle source
# File lib/vonage/verify.rb, line 171 def cancel(id) control(request_id: id, cmd: 'cancel') end
check(params)
click to toggle source
# File lib/vonage/verify.rb, line 97 def check(params) response = http_request('/verify/check/json', params: params, type: Post) raise Error, response[:error_text] if error?(response) response end
control(params)
click to toggle source
# File lib/vonage/verify.rb, line 151 def control(params) response = http_request('/verify/control/json', params: params, type: Post) raise Error, response[:error_text] if error?(response) response end
psd2(params, uri = '/verify/psd2/json')
click to toggle source
# File lib/vonage/verify.rb, line 238 def psd2(params, uri = '/verify/psd2/json') response = http_request(uri, params: params, type: Post) raise Error, response[:error_text] if error?(response) response end
request(params, uri = '/verify/json')
click to toggle source
# File lib/vonage/verify.rb, line 64 def request(params, uri = '/verify/json') response = http_request(uri, params: params, type: Post) raise Error, response[:error_text] if error?(response) response end
Also aliased as: http_request
search(params)
click to toggle source
# File lib/vonage/verify.rb, line 124 def search(params) response = http_request('/verify/search/json', params: params) raise Error, response[:error_text] if error?(response) response end
trigger_next_event(id)
click to toggle source
# File lib/vonage/verify.rb, line 187 def trigger_next_event(id) control(request_id: id, cmd: 'trigger_next_event') end
Private Instance Methods
error?(response)
click to toggle source
# File lib/vonage/verify.rb, line 249 def error?(response) response.respond_to?(:error_text) end