Class: Twilio::REST::Intelligence::V2::OperatorAttachmentsListResponse

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of OperatorAttachmentsListResponse.

Parameters:



154
155
156
157
158
159
160
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb', line 154

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

Instance Method Details

#headersObject



247
248
249
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb', line 247

def headers
  @headers
end

#operator_attachmentsObject



243
244
245
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb', line 243

def operator_attachments
    @operator_attachments
end

#operator_attachments_instanceObject



162
163
164
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb', line 162

def operator_attachments_instance
    @instance
end

#status_codeObject



251
252
253
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb', line 251

def status_code
  @status_code
end