Class: Twilio::REST::Assistants::V1::AssistantContext::FeedbackListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Assistants::V1::AssistantContext::FeedbackListResponse
- Defined in:
- lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb
Instance Method Summary collapse
- #feedback ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ FeedbackListResponse
constructor
A new instance of FeedbackListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ FeedbackListResponse
Returns a new instance of FeedbackListResponse.
297 298 299 300 301 302 303 304 305 306 307 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 297 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] || [] if limit != :unset data_list = data_list[0, limit] end @feedback = data_list.map do |data| FeedbackInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#feedback ⇒ Object
309 310 311 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 309 def feedback @feedback end |
#headers ⇒ Object
313 314 315 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 313 def headers @headers end |
#status_code ⇒ Object
317 318 319 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 317 def status_code @status_code end |