Class: Twilio::REST::Verify::V2::ServiceContext::ApproveChallengeList::ApprovePasskeysChallengeRequestResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ ApprovePasskeysChallengeRequestResponse



55
56
57
58
59
60
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 55

def initialize(payload)
        @authenticator_data = payload["authenticator_data"]
        @client_data_json = payload["client_data_json"]
        @signature = payload["signature"]
        @user_handle = payload["user_handle"]
end

Instance Attribute Details

#authenticator_dataObject



54
55
56
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 54

def authenticator_data
  @authenticator_data
end

#client_data_jsonObject



54
55
56
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 54

def client_data_json
  @client_data_json
end

#signatureObject



54
55
56
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 54

def signature
  @signature
end

#user_handleObject



54
55
56
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 54

def user_handle
  @user_handle
end

Instance Method Details

#to_json(options = {}) ⇒ Object



61
62
63
64
65
66
67
68
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 61

def to_json(options = {})
{
        "authenticatorData": @authenticator_data,
        "clientDataJSON": @client_data_json,
        "signature": @signature,
        "userHandle": @user_handle,
}.to_json(options)
end