Class: Twilio::REST::Intelligence::V2::OperatorAttachmentListResponse
- Inherits:
-
Twilio::REST::InstanceListResource
- Object
- Twilio::REST::InstanceListResource
- Twilio::REST::Intelligence::V2::OperatorAttachmentListResponse
- Defined in:
- lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb,
lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ OperatorAttachmentListResponse
constructor
A new instance of OperatorAttachmentListResponse.
- #operator_attachment ⇒ Object
- #operator_attachment_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ OperatorAttachmentListResponse
Returns a new instance of 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) = 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 end |
#operator_attachment_instance ⇒ Object
197 198 199 |
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb', line 197 def @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 |