Class: Twilio::REST::Sync::V1::ServiceContext::SyncListListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Sync::V1::ServiceContext::SyncListListResponse
- Defined in:
- lib/twilio-ruby/rest/sync/v1/service/sync_list.rb,
lib/twilio-ruby/rest/sync/v1/service/sync_list.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ SyncListListResponse
constructor
A new instance of SyncListListResponse.
- #status_code ⇒ Object
- #sync_list ⇒ Object
- #sync_list_instance ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ SyncListListResponse
476 477 478 479 480 481 482 |
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_list.rb', line 476 def initialize(version, payload, key) @sync_list_instance = payload.body[key].map do |data| SyncListInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
569 570 571 |
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_list.rb', line 569 def headers @headers end |
#status_code ⇒ Object
573 574 575 |
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_list.rb', line 573 def status_code @status_code end |
#sync_list ⇒ Object
565 566 567 |
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_list.rb', line 565 def sync_list @sync_list end |
#sync_list_instance ⇒ Object
484 485 486 |
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_list.rb', line 484 def sync_list_instance @instance end |