Sha256: 09dd4d09430323ec82e90af08ebb70fa89da0b33a1f99ddb077538e872f3a6fb

Contents?: true

Size: 367 Bytes

Versions: 3

Compression:

Stored size: 367 Bytes

Contents

module Onfido
  class Report < Resource
    def find(report_id)
      get(path: "reports/#{report_id}")
    end

    def all(check_id)
      get(path: "reports?check_id=#{check_id}")
    end

    def resume(report_id)
      post(path: "reports/#{report_id}/resume")
    end

    def cancel(report_id)
      post(path: "reports/#{report_id}/cancel")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
onfido-1.1.1 lib/onfido/resources/report.rb
onfido-1.1.0 lib/onfido/resources/report.rb
onfido-1.0.0 lib/onfido/resources/report.rb