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.



410
411
412
413
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb', line 410

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



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

def headers
    @headers
end

#status_codeObject



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

def status_code
    @status_code
end

#sync_streamObject



415
416
417
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb', line 415

def sync_stream
    @sync_stream_instance
end

#to_sObject



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

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