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.
289 290 291 292 293 294 295 296 297 298 299 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 289 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
301 302 303 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 301 def feedback @feedback end |
#headers ⇒ Object
305 306 307 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 305 def headers @headers end |
#status_code ⇒ Object
309 310 311 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 309 def status_code @status_code end |