Class: Twilio::REST::Intelligence::V2::OperatorAttachmentsInstanceMetadata

Inherits:
Twilio::REST::InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, operator_attachments_instance, headers, status_code) ⇒ OperatorAttachmentsInstanceMetadata

Initializes a new OperatorAttachmentsInstanceMetadata.

Parameters:

  • Version that contains the resource

  • operator_attachments_instance The instance associated with the metadata.

  • Header object with response headers.

  • The HTTP status code of the response.



128
129
130
131
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb', line 128

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

Instance Method Details

#headersObject



137
138
139
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb', line 137

def headers
    @headers
end

#operator_attachmentsObject



133
134
135
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb', line 133

def operator_attachments
    @operator_attachments_instance
end

#status_codeObject



141
142
143
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb', line 141

def status_code
    @status_code
end

#to_sObject



145
146
147
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb', line 145

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