Class: Twilio::REST::Verify::V2::ServiceContext::NewChallengeListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Verify::V2::ServiceContext::NewChallengeListResponse
- Defined in:
- lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb
Instance Method Summary collapse
-
#initialize(version, payload, key) ⇒ NewChallengeListResponse
constructor
A new instance of NewChallengeListResponse.
- #new_challenge_instance ⇒ Object
Constructor Details
#initialize(version, payload, key) ⇒ NewChallengeListResponse
Returns a new instance of NewChallengeListResponse.
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
#new_challenge_instance ⇒ Object
185 186 187 |
# File 'lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb', line 185 def new_challenge_instance @instance end |