Class: Twilio::REST::Sync::V1::ServiceContext::SyncMapListResponse

Inherits:
InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/sync/v1/service/sync_map.rb,
lib/twilio-ruby/rest/sync/v1/service/sync_map.rb

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of SyncMapListResponse.

Parameters:

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


476
477
478
479
480
481
482
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map.rb', line 476

def initialize(version, payload, key)
   @sync_map_instance = payload.body[key].map do |data|
    SyncMapInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#headersObject



569
570
571
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map.rb', line 569

def headers
  @headers
end

#status_codeObject



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

def status_code
  @status_code
end

#sync_mapObject



565
566
567
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map.rb', line 565

def sync_map
    @sync_map
end

#sync_map_instanceObject



484
485
486
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map.rb', line 484

def sync_map_instance
    @instance
end