Class: Virgil::SDK::HighLevel::VirgilIdentity::VerificationOptions
- Inherits:
-
Object
- Object
- Virgil::SDK::HighLevel::VirgilIdentity::VerificationOptions
- Defined in:
- lib/virgil/sdk/high_level/virgil_identity/verification_options.rb
Instance Attribute Summary collapse
-
#count_to_live ⇒ Object
readonly
this parameter is used to restrict the number of validation token usages (maximum value is 100).
-
#extra_fields ⇒ Object
readonly
Returns the value of attribute extra_fields.
-
#time_to_live ⇒ Object
readonly
is used to limit the lifetime of the token in seconds (maximum value is 60 * 60 * 24 * 365 = 1 year).
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ VerificationOptions
constructor
Initializes a new instance of the VerificationOptions class.
Constructor Details
#initialize(options = {}) ⇒ VerificationOptions
Initializes a new instance of the Virgil::SDK::HighLevel::VirgilIdentity::VerificationOptions class
51 52 53 54 55 |
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_options.rb', line 51 def initialize( = {}) @time_to_live = [:time_to_live] || 3600 @count_to_live = [:count_to_live] || 12 @extra_fields = [:extra_fields] || {} end |
Instance Attribute Details
#count_to_live ⇒ Object (readonly)
this parameter is used to restrict the number of validation token usages (maximum value is 100).
46 47 48 |
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_options.rb', line 46 def count_to_live @count_to_live end |
#extra_fields ⇒ Object (readonly)
Returns the value of attribute extra_fields
48 49 50 |
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_options.rb', line 48 def extra_fields @extra_fields end |
#time_to_live ⇒ Object (readonly)
is used to limit the lifetime of the token in seconds (maximum value is 60 * 60 * 24 * 365 = 1 year). Default value is 3600.
42 43 44 |
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_options.rb', line 42 def time_to_live @time_to_live end |