Class: Twilio::REST::Verify::V2::ServiceContext::EntityContext::ChallengeInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, challenge_instance, headers, status_code) ⇒ ChallengeInstanceMetadata

Initializes a new ChallengeInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}ChallengeInstance]

    challenge_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



440
441
442
443
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb', line 440

def initialize(version, challenge_instance, headers, status_code)
    super(version, headers, status_code)
    @challenge_instance = challenge_instance
end

Instance Method Details

#challengeObject



445
446
447
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb', line 445

def challenge
    @challenge_instance
end

#headersObject



449
450
451
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb', line 449

def headers
    @headers
end

#status_codeObject



453
454
455
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb', line 453

def status_code
    @status_code
end

#to_sObject



457
458
459
# File 'lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb', line 457

def to_s
  "<Twilio.Api.V2010.ChallengeInstanceMetadata status=#{@status_code}>"
end