Class: Onfido::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/onfido/resource.rb

Constant Summary collapse

VALID_HTTP_METHODS =
%i(get post put delete).freeze
REQUEST_TIMEOUT_HTTP_CODE =
408

Instance Method Summary collapse

Constructor Details

#initialize(api_key = nil) ⇒ Resource

Returns a new instance of Resource.



6
7
8
# File 'lib/onfido/resource.rb', line 6

def initialize(api_key = nil)
  @api_key = api_key || Onfido.api_key
end