Class: Virgil::SDK::HighLevel::VirgilIdentity::VerificationAttempt
- Inherits:
-
Object
- Object
- Virgil::SDK::HighLevel::VirgilIdentity::VerificationAttempt
- Defined in:
- lib/virgil/sdk/high_level/virgil_identity/verification_attempt.rb
Overview
This class provides an information about identity verification process.
Instance Attribute Summary collapse
-
#action_id ⇒ Object
readonly
Returns the value of attribute action_id.
-
#additional_options ⇒ Object
readonly
Returns the value of attribute additional_options.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#identity ⇒ Object
readonly
Returns the value of attribute identity.
-
#identity_type ⇒ Object
readonly
Returns the value of attribute identity_type.
Instance Method Summary collapse
-
#confirm(confirmation) ⇒ ValidationToken
Confirms an identity and generates a validation token that can be used to perform operations like Publish and Revoke global Cards.
-
#initialize(context:, action_id:, identity:, identity_type:, additional_options: nil) ⇒ VerificationAttempt
constructor
Initializes a new instance of the VerificationAttempt class.
Constructor Details
#initialize(context:, action_id:, identity:, identity_type:, additional_options: nil) ⇒ VerificationAttempt
Initializes a new instance of the Virgil::SDK::HighLevel::VirgilIdentity::VerificationAttempt class
44 45 46 47 48 49 50 |
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_attempt.rb', line 44 def initialize(context:, action_id:, identity:, identity_type:, additional_options: nil) @context = context @action_id = action_id @identity = identity @identity_type = identity_type @additional_options = || VerificationOptions.new end |
Instance Attribute Details
#action_id ⇒ Object (readonly)
Returns the value of attribute action_id
41 42 43 |
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_attempt.rb', line 41 def action_id @action_id end |
#additional_options ⇒ Object (readonly)
Returns the value of attribute additional_options
41 42 43 |
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_attempt.rb', line 41 def @additional_options end |
#context ⇒ Object (readonly)
Returns the value of attribute context
41 42 43 |
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_attempt.rb', line 41 def context @context end |
#identity ⇒ Object (readonly)
Returns the value of attribute identity
41 42 43 |
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_attempt.rb', line 41 def identity @identity end |
#identity_type ⇒ Object (readonly)
Returns the value of attribute identity_type
41 42 43 |
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_attempt.rb', line 41 def identity_type @identity_type end |
Instance Method Details
#confirm(confirmation) ⇒ ValidationToken
Confirms an identity and generates a validation token that can be used to perform operations like Publish and Revoke global Cards.
58 59 60 61 62 63 |
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_attempt.rb', line 58 def confirm(confirmation) raise ConfirmationIsNotValid unless confirmation token = confirmation.confirm_and_grab_validation_token(self, self.context.client) ValidationToken.new(token) end |