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



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

#headers ⇒ Object



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

def headers
  @headers
end

#operator_attachment ⇒ Object



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

def operator_attachment
    @operator_attachment
end

#operator_attachment_instance ⇒ Object



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

def operator_attachment_instance
    @instance
end

#status_code ⇒ Object



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

def status_code
  @status_code
end