Class: Twilio::REST::Intelligence::V2::OperatorAttachmentInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, operator_attachment_instance, headers, status_code) ⇒ OperatorAttachmentInstanceMetadata

Initializes a new OperatorAttachmentInstanceMetadata.

Parameters:

  • Version that contains the resource

  • operator_attachment_instance The instance associated with the metadata.

  • Header object with response headers.

  • The HTTP status code of the response.



163
164
165
166
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb', line 163

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

Instance Method Details

#headersObject



172
173
174
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb', line 172

def headers
    @headers
end

#operator_attachmentObject



168
169
170
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb', line 168

def operator_attachment
    @operator_attachment_instance
end

#status_codeObject



176
177
178
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb', line 176

def status_code
    @status_code
end

#to_sObject



180
181
182
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb', line 180

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