Class: Twilio::REST::Voice::V1::ArchivedCallListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Voice::V1::ArchivedCallListResponse
- Defined in:
- lib/twilio-ruby/rest/voice/v1/archived_call.rb,
lib/twilio-ruby/rest/voice/v1/archived_call.rb
Instance Method Summary collapse
- #archived_call ⇒ Object
- #archived_call_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ ArchivedCallListResponse
constructor
A new instance of ArchivedCallListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ ArchivedCallListResponse
Returns a new instance of ArchivedCallListResponse.
143 144 145 146 147 148 149 |
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 143 def initialize(version, payload, key) @archived_call_instance = payload.body[key].map do |data| ArchivedCallInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#archived_call ⇒ Object
232 233 234 |
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 232 def archived_call @archived_call end |
#archived_call_instance ⇒ Object
151 152 153 |
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 151 def archived_call_instance @instance end |
#headers ⇒ Object
236 237 238 |
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 236 def headers @headers end |
#status_code ⇒ Object
240 241 242 |
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 240 def status_code @status_code end |