class Onfido::API
Attributes
options[R]
Public Class Methods
new(api_key:, region:, **extra_options)
click to toggle source
# File lib/onfido/api.rb, line 5 def initialize(api_key:, region:, **extra_options) @options = Onfido::Options.new(api_key: api_key, region: region, **extra_options) end
Public Instance Methods
address()
click to toggle source
# File lib/onfido/api.rb, line 41 def address @address ||= Onfido::Address.new(options) end
applicant()
click to toggle source
# File lib/onfido/api.rb, line 9 def applicant @applicant ||= Onfido::Applicant.new(options) end
check()
click to toggle source
# File lib/onfido/api.rb, line 13 def check @check ||= Onfido::Check.new(options) end
document()
click to toggle source
# File lib/onfido/api.rb, line 17 def document @document ||= Onfido::Document.new(options) end
extraction()
click to toggle source
# File lib/onfido/api.rb, line 45 def extraction @extraction ||= Onfido::Extraction.new(options) end
live_photo()
click to toggle source
# File lib/onfido/api.rb, line 21 def live_photo @live_photo ||= Onfido::LivePhoto.new(options) end
live_video()
click to toggle source
# File lib/onfido/api.rb, line 25 def live_video @live_video ||= Onfido::LiveVideo.new(options) end
report()
click to toggle source
# File lib/onfido/api.rb, line 29 def report @report ||= Onfido::Report.new(options) end
sdk_token()
click to toggle source
# File lib/onfido/api.rb, line 33 def sdk_token @sdk_token ||= Onfido::SdkToken.new(options) end
webhook()
click to toggle source
# File lib/onfido/api.rb, line 37 def webhook @webhook ||= Onfido::Webhook.new(options) end