Class: Twilio::REST::Verify::V2::ServiceContext::ApproveChallengeList::ApprovePasskeysChallengeRequestResponse
- Inherits:
-
Object
- Object
- Twilio::REST::Verify::V2::ServiceContext::ApproveChallengeList::ApprovePasskeysChallengeRequestResponse
- Defined in:
- lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ ApprovePasskeysChallengeRequestResponse
constructor
A new instance of ApprovePasskeysChallengeRequestResponse.
- #to_json(options = {}) ⇒ Object
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_data ⇒ Object
54 55 56 |
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 54 def authenticator_data @authenticator_data end |
#client_data_json ⇒ Object
54 55 56 |
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 54 def client_data_json @client_data_json end |
#signature ⇒ Object
54 55 56 |
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 54 def signature @signature end |
#user_handle ⇒ Object
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( = {}) { "authenticatorData": @authenticator_data, "clientDataJSON": @client_data_json, "signature": @signature, "userHandle": @user_handle, }.to_json() end |