Class: Twilio::REST::Insights::V2::ReportListResponse

Inherits:
Twilio::REST::InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/insights/v2/report.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key) ⇒ ReportListResponse

Returns a new instance of ReportListResponse.

Parameters:

  • instance (Array<ReportInstance>)
  • headers (Hash{String => Object})
  • status_code (Integer)


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