Class: Virgil::SDK::HighLevel::VirgilIdentity::VerificationOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/virgil/sdk/high_level/virgil_identity/verification_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @time_to_live = options[:time_to_live] || 3600
  @count_to_live = options[:count_to_live] || 12
  @extra_fields = options[:extra_fields] || {}
end

Instance Attribute Details

#count_to_liveObject (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_fieldsObject (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_liveObject (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