Class: Twilio::REST::Verify::V2::ServiceContext::NewChallengeListResponse

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ NewChallengeListResponse

Returns a new instance of NewChallengeListResponse.

Parameters:



177
178
179
180
181
182
183
# File 'lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb', line 177

def initialize(version, payload, key)
   @new_challenge_instance = payload.body[key].map do |data|
    NewChallengeInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#headersObject



270
271
272
# File 'lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb', line 270

def headers
  @headers
end

#new_challengeObject



266
267
268
# File 'lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb', line 266

def new_challenge
    @new_challenge
end

#new_challenge_instanceObject



185
186
187
# File 'lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb', line 185

def new_challenge_instance
    @instance
end

#status_codeObject



274
275
276
# File 'lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb', line 274

def status_code
  @status_code
end