Class: Tanker::VerificationOptions
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Tanker::VerificationOptions
- Defined in:
- lib/tanker/verification_options.rb
Overview
Options that can be given when using a verification method
Instance Method Summary collapse
-
#initialize(with_session_token: false, allow_e2e_method_switch: false) ⇒ VerificationOptions
constructor
A new instance of VerificationOptions.
Constructor Details
#initialize(with_session_token: false, allow_e2e_method_switch: false) ⇒ VerificationOptions
Returns a new instance of VerificationOptions.
8 9 10 11 12 13 14 |
# File 'lib/tanker/verification_options.rb', line 8 def initialize(with_session_token: false, allow_e2e_method_switch: false) super() self[:version] = 2 self[:with_session_token] = with_session_token ? 1 : 0 self[:allow_e2e_method_switch] = allow_e2e_method_switch ? 1 : 0 end |