Class: Twilio::REST::Insights::V2::ReportList::InsightsV2CreateAccountReportRequestTimeRange

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) ⇒ InsightsV2CreateAccountReportRequestTimeRange

Returns a new instance of InsightsV2CreateAccountReportRequestTimeRange.



312
313
314
315
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 312

def initialize(payload)
        @start_time = payload["start_time"]
        @end_time = payload["end_time"]
end

Instance Attribute Details

#end_timeObject

Parameters:

  • : (start_time)
    Time

    Start time of the report

  • : (end_time)
    Time

    End time of the report



311
312
313
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 311

def end_time
  @end_time
end

#start_timeObject

Parameters:

  • : (start_time)
    Time

    Start time of the report

  • : (end_time)
    Time

    End time of the report



311
312
313
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 311

def start_time
  @start_time
end

Instance Method Details

#to_json(options = {}) ⇒ Object



316
317
318
319
320
321
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 316

def to_json(options = {})
{
        "start_time": @start_time,
        "end_time": @end_time,
}.to_json(options)
end