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

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) ⇒ 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_attachmentObject



30
31
32
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 30

def authenticator_attachment
  @authenticator_attachment
end

#idObject



30
31
32
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 30

def id
  @id
end

#raw_idObject



30
31
32
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 30

def raw_id
  @raw_id
end

#responseObject



30
31
32
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 30

def response
  @response
end

#typeObject



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(options = {})
{
        "id": @id,
        "rawId": @raw_id,
        "authenticatorAttachment": @authenticator_attachment,
        "type": @type,
        "response": @response,
}.to_json(options)
end