Class: Onfido::Report
Constant Summary
Constants inherited
from Resource
Onfido::Resource::REQUEST_TIMEOUT_HTTP_CODE, Onfido::Resource::VALID_HTTP_METHODS
Instance Method Summary
collapse
Methods inherited from Resource
#initialize
Instance Method Details
#all(check_id) ⇒ Object
9
10
11
|
# File 'lib/onfido/resources/report.rb', line 9
def all(check_id)
get(path: "reports?check_id=#{check_id}")
end
|
#cancel(report_id) ⇒ Object
17
18
19
|
# File 'lib/onfido/resources/report.rb', line 17
def cancel(report_id)
post(path: "reports/#{report_id}/cancel")
end
|
#find(report_id) ⇒ Object
5
6
7
|
# File 'lib/onfido/resources/report.rb', line 5
def find(report_id)
get(path: "reports/#{report_id}")
end
|
#resume(report_id) ⇒ Object
13
14
15
|
# File 'lib/onfido/resources/report.rb', line 13
def resume(report_id)
post(path: "reports/#{report_id}/resume")
end
|