Class: Twilio::REST::Intelligence::V2::OperatorAttachmentsListResponse
- Inherits:
-
Twilio::REST::InstanceListResource
- Object
- Twilio::REST::InstanceListResource
- Twilio::REST::Intelligence::V2::OperatorAttachmentsListResponse
- Defined in:
- lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb,
lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ OperatorAttachmentsListResponse
constructor
A new instance of OperatorAttachmentsListResponse.
- #operator_attachments ⇒ Object
- #operator_attachments_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ OperatorAttachmentsListResponse
Returns a new instance of OperatorAttachmentsListResponse.
154 155 156 157 158 159 160 |
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb', line 154 def initialize(version, payload, key) = payload.body[key].map do |data| OperatorAttachmentsInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
247 248 249 |
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb', line 247 def headers @headers end |
#operator_attachments ⇒ Object
243 244 245 |
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb', line 243 def end |
#operator_attachments_instance ⇒ Object
162 163 164 |
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb', line 162 def @instance end |
#status_code ⇒ Object
251 252 253 |
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb', line 251 def status_code @status_code end |