Class: Twilio::REST::Verify::V2::VerificationAttemptListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Verify::V2::VerificationAttemptListResponse
- Defined in:
- lib/twilio-ruby/rest/verify/v2/verification_attempt.rb,
lib/twilio-ruby/rest/verify/v2/verification_attempt.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ VerificationAttemptListResponse
constructor
A new instance of VerificationAttemptListResponse.
- #status_code ⇒ Object
- #verification_attempt ⇒ Object
- #verification_attempt_instance ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ VerificationAttemptListResponse
Returns a new instance of VerificationAttemptListResponse.
327 328 329 330 331 332 333 |
# File 'lib/twilio-ruby/rest/verify/v2/verification_attempt.rb', line 327 def initialize(version, payload, key) @verification_attempt_instance = payload.body[key].map do |data| VerificationAttemptInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
420 421 422 |
# File 'lib/twilio-ruby/rest/verify/v2/verification_attempt.rb', line 420 def headers @headers end |
#status_code ⇒ Object
424 425 426 |
# File 'lib/twilio-ruby/rest/verify/v2/verification_attempt.rb', line 424 def status_code @status_code end |
#verification_attempt ⇒ Object
416 417 418 |
# File 'lib/twilio-ruby/rest/verify/v2/verification_attempt.rb', line 416 def verification_attempt @verification_attempt end |
#verification_attempt_instance ⇒ Object
335 336 337 |
# File 'lib/twilio-ruby/rest/verify/v2/verification_attempt.rb', line 335 def verification_attempt_instance @instance end |