Class: Twilio::REST::Verify::V2::ServiceContext::NewVerifyFactorList::VerifyPasskeysFactorRequestResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_objectObject



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_jsonObject



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

#transportsObject



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(options = {})
{
        "attestationObject": @attestation_object,
        "clientDataJSON": @client_data_json,
        "transports": @transports,
}.to_json(options)
end