Class: Twilio::REST::Trusthub::V1::SupportingDocumentTypeInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, supporting_document_type_instance, headers, status_code) ⇒ SupportingDocumentTypeInstanceMetadata

Initializes a new SupportingDocumentTypeInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}SupportingDocumentTypeInstance]

    supporting_document_type_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



237
238
239
240
# File 'lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb', line 237

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

Instance Method Details

#headersObject



246
247
248
# File 'lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb', line 246

def headers
    @headers
end

#status_codeObject



250
251
252
# File 'lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb', line 250

def status_code
    @status_code
end

#supporting_document_typeObject



242
243
244
# File 'lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb', line 242

def supporting_document_type
    @supporting_document_type_instance
end

#to_sObject



254
255
256
# File 'lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb', line 254

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