Class: Twilio::REST::Sync::V1::ServiceContext::SyncListListResponse

Inherits:
InstanceListResource show all
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

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ SyncListListResponse

Returns a new instance of SyncListListResponse.

Parameters:

  • instance (Array<SyncListInstance>)
  • headers (Hash{String => Object})
  • status_code (Integer)


484
485
486
487
488
489
490
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_list.rb', line 484

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

#headersObject



577
578
579
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_list.rb', line 577

def headers
  @headers
end

#status_codeObject



581
582
583
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_list.rb', line 581

def status_code
  @status_code
end

#sync_listObject



573
574
575
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_list.rb', line 573

def sync_list
    @sync_list
end

#sync_list_instanceObject



492
493
494
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_list.rb', line 492

def sync_list_instance
    @instance
end