Class: Twilio::REST::Verify::V2::ServiceContext::ApproveChallengeList::ApprovePasskeysChallengeRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Verify::V2::ServiceContext::ApproveChallengeList::ApprovePasskeysChallengeRequest
- Defined in:
- lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ ApprovePasskeysChallengeRequest
constructor
A new instance of ApprovePasskeysChallengeRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ ApprovePasskeysChallengeRequest
Returns a new instance of ApprovePasskeysChallengeRequest.
31 32 33 34 35 36 37 |
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 31 def initialize(payload) @id = payload["id"] @raw_id = payload["raw_id"] @authenticator_attachment = payload["authenticator_attachment"] @type = payload["type"] @response = payload["response"] end |
Instance Attribute Details
#authenticator_attachment ⇒ Object
30 31 32 |
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 30 def @authenticator_attachment end |
#id ⇒ Object
30 31 32 |
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 30 def id @id end |
#raw_id ⇒ Object
30 31 32 |
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 30 def raw_id @raw_id end |
#response ⇒ Object
30 31 32 |
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 30 def response @response end |
#type ⇒ Object
30 31 32 |
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 30 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
38 39 40 41 42 43 44 45 46 |
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 38 def to_json( = {}) { "id": @id, "rawId": @raw_id, "authenticatorAttachment": @authenticator_attachment, "type": @type, "response": @response, }.to_json() end |