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.
304 305 306 307 308 309 310 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/notification.rb', line 304 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
397 398 399 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/notification.rb', line 397 def headers @headers end |
#notification ⇒ Object
393 394 395 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/notification.rb', line 393 def notification @notification end |
#notification_instance ⇒ Object
312 313 314 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/notification.rb', line 312 def notification_instance @instance end |
#status_code ⇒ Object
401 402 403 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/notification.rb', line 401 def status_code @status_code end |