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.



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

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

Instance Method Details

#documentObject



439
440
441
# File 'lib/twilio-ruby/rest/sync/v1/service/document.rb', line 439

def document
    @document_instance
end

#headersObject



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

def headers
    @headers
end

#status_codeObject



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

def status_code
    @status_code
end

#to_sObject



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

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