Class: Twilio::REST::Sync::V1::ServiceContext::DocumentInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, document_instance, headers, status_code) ⇒ DocumentInstanceMetadata

Initializes a new DocumentInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}DocumentInstance]

    document_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



442
443
444
445
# File 'lib/twilio-ruby/rest/sync/v1/service/document.rb', line 442

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

Instance Method Details

#documentObject



447
448
449
# File 'lib/twilio-ruby/rest/sync/v1/service/document.rb', line 447

def document
    @document_instance
end

#headersObject



451
452
453
# File 'lib/twilio-ruby/rest/sync/v1/service/document.rb', line 451

def headers
    @headers
end

#status_codeObject



455
456
457
# File 'lib/twilio-ruby/rest/sync/v1/service/document.rb', line 455

def status_code
    @status_code
end

#to_sObject



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

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