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
time_to_live is used to limit the lifetime of the token in seconds (maximum value is 60 * 60 * 24 * 365 = 1 year).
-
#time_to_live ⇒ Object
readonly
time_to_live 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
A new instance of VerificationOptions.
Constructor Details
#initialize(options = {}) ⇒ VerificationOptions
Returns a new instance of VerificationOptions.
47 48 49 50 |
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_options.rb', line 47 def initialize( = {}) @time_to_live = [:time_to_live] || 3600 @count_to_live = [:count_to_live] || 12 end |
Instance Attribute Details
#count_to_live ⇒ Object (readonly)
time_to_live is used to limit the lifetime of the token in seconds (maximum value is 60 * 60 * 24 * 365 = 1 year). Default value is 3600.
count_to_live parameter is used to restrict the number of validation token usages (maximum value is 100).
45 46 47 |
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_options.rb', line 45 def count_to_live @count_to_live end |
#time_to_live ⇒ Object (readonly)
time_to_live is used to limit the lifetime of the token in seconds (maximum value is 60 * 60 * 24 * 365 = 1 year). Default value is 3600.
count_to_live parameter is used to restrict the number of validation token usages (maximum value is 100).
45 46 47 |
# File 'lib/virgil/sdk/high_level/virgil_identity/verification_options.rb', line 45 def time_to_live @time_to_live end |