Class: Twilio::REST::Verify::V2::ServiceContext::NewChallengeInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, new_challenge_instance, headers, status_code) ⇒ NewChallengeInstanceMetadata

Initializes a new NewChallengeInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}NewChallengeInstance]

    new_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.



151
152
153
154
# File 'lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb', line 151

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

Instance Method Details

#headersObject



160
161
162
# File 'lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb', line 160

def headers
    @headers
end

#new_challengeObject



156
157
158
# File 'lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb', line 156

def new_challenge
    @new_challenge_instance
end

#status_codeObject



164
165
166
# File 'lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb', line 164

def status_code
    @status_code
end

#to_sObject



168
169
170
# File 'lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb', line 168

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