Class: Twilio::REST::Api::V2010::AccountContext::CallContext::NotificationListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::CallContext::NotificationListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/call/notification.rb,
lib/twilio-ruby/rest/api/v2010/account/call/notification.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ NotificationListResponse
constructor
A new instance of NotificationListResponse.
- #notification ⇒ Object
- #notification_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ NotificationListResponse
Returns a new instance of NotificationListResponse.
312 313 314 315 316 317 318 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/notification.rb', line 312 def initialize(version, payload, key) @notification_instance = payload.body[key].map do |data| NotificationInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
405 406 407 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/notification.rb', line 405 def headers @headers end |
#notification ⇒ Object
401 402 403 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/notification.rb', line 401 def notification @notification end |
#notification_instance ⇒ Object
320 321 322 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/notification.rb', line 320 def notification_instance @instance end |
#status_code ⇒ Object
409 410 411 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/notification.rb', line 409 def status_code @status_code end |