Class: Twilio::REST::Verify::V2::ServiceContext::NewChallengeList::CreatePasskeysChallengeRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Verify::V2::ServiceContext::NewChallengeList::CreatePasskeysChallengeRequest
- Defined in:
- lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ CreatePasskeysChallengeRequest
constructor
A new instance of CreatePasskeysChallengeRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ CreatePasskeysChallengeRequest
Returns a new instance of CreatePasskeysChallengeRequest.
28 29 30 31 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb', line 28 def initialize(payload) @identity = payload["identity"] @factor_sid = payload["factor_sid"] end |
Instance Attribute Details
#factor_sid ⇒ Object
27 28 29 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb', line 27 def factor_sid @factor_sid end |
#identity ⇒ Object
27 28 29 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb', line 27 def identity @identity end |
Instance Method Details
#to_json(options = {}) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb', line 32 def to_json( = {}) { "identity": @identity, "factor_sid": @factor_sid, }.to_json() end |