Sha256: 990ced90a69bca7afb3d7a314320a6734abb1016f43afa32581483914b69c993

Contents?: true

Size: 741 Bytes

Versions: 2

Compression:

Stored size: 741 Bytes

Contents

module Onfido
  class API
    def initialize(options = {})
      @api_key = options[:api_key]
    end

    def applicant
      Onfido::Applicant.new(@api_key)
    end

    def check
      Onfido::Check.new(@api_key)
    end

    def document
      Onfido::Document.new(@api_key)
    end

    def live_photo
      Onfido::LivePhoto.new(@api_key)
    end

    def live_video
      Onfido::LiveVideo.new(@api_key)
    end

    def report
      Onfido::Report.new(@api_key)
    end

    def sdk_token
      Onfido::SdkToken.new(@api_key)
    end

    def webhook
      Onfido::Webhook.new(@api_key)
    end

    def address
      Onfido::Address.new(@api_key)
    end

    def extraction
      Onfido::Extraction.new(@api_key)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
onfido-1.1.1 lib/onfido/api.rb
onfido-1.1.0 lib/onfido/api.rb