Class: Twilio::REST::Sync::V1::ServiceContext::SyncStreamInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, sync_stream_instance, headers, status_code) ⇒ SyncStreamInstanceMetadata

Initializes a new SyncStreamInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}SyncStreamInstance]

    sync_stream_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



418
419
420
421
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb', line 418

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

Instance Method Details

#headersObject



427
428
429
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb', line 427

def headers
    @headers
end

#status_codeObject



431
432
433
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb', line 431

def status_code
    @status_code
end

#sync_streamObject



423
424
425
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb', line 423

def sync_stream
    @sync_stream_instance
end

#to_sObject



435
436
437
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb', line 435

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