Class: Twilio::REST::Insights::V2::ReportList::InsightsV2CreateAccountReportRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/insights/v2/report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ InsightsV2CreateAccountReportRequest

Returns a new instance of InsightsV2CreateAccountReportRequest.



296
297
298
299
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 296

def initialize(payload)
        @time_range = payload["time_range"]
        @filters = payload["filters"]
end

Instance Attribute Details

#filtersObject

Parameters:

  • : (time_range)
    ReportList.InsightsV2CreateAccountReportRequestTimeRange
  • : (filters)
    Array<ReportList.ReportFilter>


295
296
297
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 295

def filters
  @filters
end

#time_rangeObject

Parameters:

  • : (time_range)
    ReportList.InsightsV2CreateAccountReportRequestTimeRange
  • : (filters)
    Array<ReportList.ReportFilter>


295
296
297
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 295

def time_range
  @time_range
end

Instance Method Details

#to_json(options = {}) ⇒ Object



300
301
302
303
304
305
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 300

def to_json(options = {})
{
        "time_range": @time_range,
        "filters": @filters,
}.to_json(options)
end