Sha256: 889132fca1f25e20591395cd1420812eea9cbe230c5a093f6933c712dd177020

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

########
# Gems #
########

require 'http'
require 'mime/types'
require 'dry-struct'

################
# Own requires #
################

require 'sumsub/version'

require 'sumsub/types'
require 'sumsub/message_signer'
require 'sumsub/configuration'
require 'sumsub/parser'
require 'sumsub/request'
require 'sumsub/webhook_sender'
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/struct/review_result'
require 'sumsub/struct/webhook_payload'

module Sumsub
  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

2 entries across 2 versions & 1 rubygems

Version Path
sumsub-ruby-sdk-0.2.1 lib/sumsub.rb
sumsub-ruby-sdk-0.2.0 lib/sumsub.rb