Class: Onfido::WorkflowRun

Inherits:
Resource show all
Defined in:
lib/onfido/resources/workflow_run.rb

Constant Summary

Constants inherited from Resource

Resource::ADDITIONAL_HEADERS, Resource::REQUEST_TIMEOUT_HTTP_CODE, Resource::VALID_HTTP_METHODS

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Onfido::Resource

Instance Method Details

#all(query_params = {}) ⇒ Object



13
14
15
# File 'lib/onfido/resources/workflow_run.rb', line 13

def all(query_params = {})
  get(path: "workflow_runs?#{stringify_query_params(query_params)}")
end

#create(payload) ⇒ Object



5
6
7
# File 'lib/onfido/resources/workflow_run.rb', line 5

def create(payload)
  post(path: 'workflow_runs', payload: payload)
end

#evidence(workflow_run_id) ⇒ Object



17
18
19
# File 'lib/onfido/resources/workflow_run.rb', line 17

def evidence(workflow_run_id)
  get(path: "workflow_runs/#{workflow_run_id}/signed_evidence_file")
end

#find(workflow_run_id) ⇒ Object



9
10
11
# File 'lib/onfido/resources/workflow_run.rb', line 9

def find(workflow_run_id)
  get(path: "workflow_runs/#{workflow_run_id}")
end