Class: Twilio::REST::Memory::V1::RecallListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Memory::V1::RecallListResponse
- Defined in:
- lib/twilio-ruby/rest/memory/v1/recall.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ RecallListResponse
constructor
A new instance of RecallListResponse.
- #recall ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ RecallListResponse
Returns a new instance of RecallListResponse.
276 277 278 279 280 281 282 283 284 285 286 |
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 276 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] || [] if limit != :unset data_list = data_list[0, limit] end @recall = data_list.map do |data| RecallInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
292 293 294 |
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 292 def headers @headers end |
#recall ⇒ Object
288 289 290 |
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 288 def recall @recall end |
#status_code ⇒ Object
296 297 298 |
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 296 def status_code @status_code end |