Class: Twilio::REST::Insights::V2::ReportListResponse
- Inherits:
-
Twilio::REST::InstanceListResource
- Object
- Twilio::REST::InstanceListResource
- Twilio::REST::Insights::V2::ReportListResponse
- Defined in:
- lib/twilio-ruby/rest/insights/v2/report.rb
Instance Method Summary collapse
-
#initialize(version, payload, key) ⇒ ReportListResponse
constructor
A new instance of ReportListResponse.
- #report_instance ⇒ Object
Constructor Details
#initialize(version, payload, key) ⇒ ReportListResponse
Returns a new instance of ReportListResponse.
639 640 641 642 643 644 645 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 639 def initialize(version, payload, key) @report_instance = payload.body[key].map do |data| ReportInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#report_instance ⇒ Object
647 648 649 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 647 def report_instance @instance end |