Class: Twilio::REST::Verify::V2::ServiceContext::NewVerifyFactorList::VerifyPasskeysFactorRequestResponse
- Inherits:
-
Object
- Object
- Twilio::REST::Verify::V2::ServiceContext::NewVerifyFactorList::VerifyPasskeysFactorRequestResponse
- Defined in:
- lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ VerifyPasskeysFactorRequestResponse
constructor
A new instance of VerifyPasskeysFactorRequestResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ VerifyPasskeysFactorRequestResponse
54 55 56 57 58 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 54 def initialize(payload) @attestation_object = payload["attestation_object"] @client_data_json = payload["client_data_json"] @transports = payload["transports"] end |
Instance Attribute Details
#attestation_object ⇒ Object
53 54 55 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 53 def attestation_object @attestation_object end |
#client_data_json ⇒ Object
53 54 55 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 53 def client_data_json @client_data_json end |
#transports ⇒ Object
53 54 55 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 53 def transports @transports end |
Instance Method Details
#to_json(options = {}) ⇒ Object
59 60 61 62 63 64 65 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb', line 59 def to_json( = {}) { "attestationObject": @attestation_object, "clientDataJSON": @client_data_json, "transports": @transports, }.to_json() end |