Class: Twilio::REST::Verify::V2::ServiceContext::ApproveChallengeListResponse

Inherits:
InstanceListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ApproveChallengeListResponse.

Parameters:



205
206
207
208
209
210
211
212
213
214
215
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 205

def initialize(version, payload, key, limit = :unset)
  data_list = payload.body[key]
  if limit != :unset
    data_list = data_list[0, limit]
  end
  @approve_challenge = data_list.map do |data|
    ApproveChallengeInstance.new(version, data)
  end
  @headers = payload.headers
  @status_code = payload.status_code
end

Instance Method Details

#approve_challengeObject



217
218
219
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 217

def approve_challenge
    @approve_challenge
end

#headersObject



221
222
223
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 221

def headers
  @headers
end

#status_codeObject



225
226
227
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 225

def status_code
  @status_code
end