Class: Twilio::REST::Intelligence::V2::OperatorAttachmentListResponse

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ OperatorAttachmentListResponse

Returns a new instance of OperatorAttachmentListResponse.

Parameters:



189
190
191
192
193
194
195
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb', line 189

def initialize(version, payload, key)
   @operator_attachment_instance = payload.body[key].map do |data|
    OperatorAttachmentInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#headersObject



282
283
284
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb', line 282

def headers
  @headers
end

#operator_attachmentObject



278
279
280
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb', line 278

def operator_attachment
    @operator_attachment
end

#operator_attachment_instanceObject



197
198
199
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb', line 197

def operator_attachment_instance
    @instance
end

#status_codeObject



286
287
288
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb', line 286

def status_code
  @status_code
end