Module: Sumsub

Includes:
Types
Defined in:
lib/sumsub.rb,
lib/sumsub/types.rb,
lib/sumsub/parser.rb,
lib/sumsub/request.rb,
lib/sumsub/version.rb,
lib/sumsub/struct/info.rb,
lib/sumsub/configuration.rb,
lib/sumsub/message_signer.rb,
lib/sumsub/struct/address.rb,
lib/sumsub/webhook_sender.rb,
lib/sumsub/struct/applicant.rb,
lib/sumsub/struct/base_struct.rb,
lib/sumsub/struct/review_result.rb,
lib/sumsub/struct/error_response.rb,
lib/sumsub/struct/webhook_payload.rb,
lib/sumsub/struct/applicant_update.rb,
lib/sumsub/struct/document_metadata.rb

Defined Under Namespace

Modules: Struct, Types Classes: Configuration, MessageSigner, Parser, Request, WebhookSender

Constant Summary collapse

VERSION =
"0.2.1"

Constants included from Types

Types::IdDocSubTypes, Types::IdDocTypes, Types::RejectLabels, Types::ReviewAnswers, Types::ReviewRejectTypes, Types::WebhookTypes

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



35
36
37
# File 'lib/sumsub.rb', line 35

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



46
47
48
# File 'lib/sumsub.rb', line 46

def self.configure
  yield(configuration)
end

.error_response?(response) ⇒ Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/sumsub.rb', line 50

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

.resetObject



42
43
44
# File 'lib/sumsub.rb', line 42

def self.reset
  @configuration = Configuration.new
end