Class: Twilio::REST::Sync::V1::ServiceContext::SyncMapContext::SyncMapItemInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, sync_map_item_instance, headers, status_code) ⇒ SyncMapItemInstanceMetadata

Initializes a new SyncMapItemInstanceMetadata.

Parameters:

  • Version that contains the resource

  • sync_map_item_instance The instance associated with the metadata.

  • Header object with response headers.

  • The HTTP status code of the response.



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

def initialize(version, sync_map_item_instance, headers, status_code)
    super(version, headers, status_code)
    @sync_map_item_instance = sync_map_item_instance
end

Instance Method Details

#headersObject



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

def headers
    @headers
end

#status_codeObject



489
490
491
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb', line 489

def status_code
    @status_code
end

#sync_map_itemObject



481
482
483
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb', line 481

def sync_map_item
    @sync_map_item_instance
end

#to_sObject



493
494
495
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb', line 493

def to_s
  "<Twilio.Api.V2010.SyncMapItemInstanceMetadata status=#{@status_code}>"
end