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,
lib/twilio-ruby/rest/insights/v2/report.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ ReportListResponse
constructor
A new instance of ReportListResponse.
- #report ⇒ Object
- #report_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ ReportListResponse
Returns a new instance of ReportListResponse.
641 642 643 644 645 646 647 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 641 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
#headers ⇒ Object
734 735 736 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 734 def headers @headers end |
#report ⇒ Object
730 731 732 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 730 def report @report end |
#report_instance ⇒ Object
649 650 651 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 649 def report_instance @instance end |
#status_code ⇒ Object
738 739 740 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 738 def status_code @status_code end |