Class: Twilio::REST::Api::V2010::AccountContext::MessageContext::FeedbackListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::MessageContext::FeedbackListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/message/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.
170 171 172 173 174 175 176 177 178 179 180 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 170 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
182 183 184 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 182 def feedback @feedback end |
#headers ⇒ Object
186 187 188 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 186 def headers @headers end |
#status_code ⇒ Object
190 191 192 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 190 def status_code @status_code end |