Class: Onfido::Resource

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

Overview

rubocop:todo Metrics/ClassLength

Constant Summary collapse

VALID_HTTP_METHODS =
%i[get post put delete].freeze
REQUEST_TIMEOUT_HTTP_CODE =
408
ADDITIONAL_HEADERS =
{ 'Content-Type' => 'application/json; charset=utf-8' }.freeze

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Resource

Returns a new instance of Resource.



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

def initialize(options)
  @rest_client = options.rest_client
end