Class: Twilio::REST::Api::V2010::AccountContext::CallContext::EventListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::CallContext::EventListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/call/event.rb
Instance Method Summary collapse
- #event ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ EventListResponse
constructor
A new instance of EventListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ EventListResponse
Returns a new instance of EventListResponse.
219 220 221 222 223 224 225 226 227 228 229 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/event.rb', line 219 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @event = data_list.map do |data| EventInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#event ⇒ Object
231 232 233 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/event.rb', line 231 def event @event end |
#headers ⇒ Object
235 236 237 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/event.rb', line 235 def headers @headers end |
#status_code ⇒ Object
239 240 241 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/event.rb', line 239 def status_code @status_code end |