Sha256: c63f2479ef4f96e433e0fa65cc6e3b165fafd13f9ed5fd05fc21473afb008d94

Contents?: true

Size: 859 Bytes

Versions: 3

Compression:

Stored size: 859 Bytes

Contents

# frozen_string_literal: true

require 'http'
require 'types'
require 'mime/types'

module Sumsub  
  require 'sumsub/message_signer'
  require 'sumsub/configuration'
  require 'sumsub/parser'
  require 'sumsub/request'
  require 'sumsub/struct/base_struct'
  require 'sumsub/struct/error_response'
  require 'sumsub/struct/address'
  require 'sumsub/struct/info'
  require 'sumsub/struct/applicant'
  require 'sumsub/struct/applicant_update'
  require 'sumsub/struct/document_metadata'
  require 'sumsub/version'

  class << self
    attr_accessor :configuration
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.reset
    @configuration = Configuration.new
  end

  def self.configure
    yield(configuration)
  end

  def self.error_response?(response)
    response.class == Sumsub::Struct::ErrorResponse
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sumsub-ruby-sdk-0.1.3 lib/sumsub.rb
sumsub-ruby-sdk-0.1.2 lib/sumsub.rb
sumsub-ruby-sdk-0.1.1 lib/sumsub.rb