Class: Twilio::REST::Sync::V1::ServiceContext::SyncMapInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, sync_map_instance, headers, status_code) ⇒ SyncMapInstanceMetadata

Initializes a new SyncMapInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}SyncMapInstance] —

    sync_map_instance The instance associated with the metadata.

  • headers (Hash) —

    Header object with response headers.

  • status_code (Integer) —

    The HTTP status code of the response.



458
459
460
461
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map.rb', line 458

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

Instance Method Details

#headers ⇒ Object



467
468
469
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map.rb', line 467

def headers
    @headers
end

#status_code ⇒ Object



471
472
473
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map.rb', line 471

def status_code
    @status_code
end

#sync_map ⇒ Object



463
464
465
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map.rb', line 463

def sync_map
    @sync_map_instance
end

#to_s ⇒ Object



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

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