Class: Twilio::REST::Insights::V2::OutboundList::InsightsV2CreatePhoneNumbersReportRequestTimeRange

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ InsightsV2CreatePhoneNumbersReportRequestTimeRange

Returns a new instance of InsightsV2CreatePhoneNumbersReportRequestTimeRange.



67
68
69
70
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 67

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



66
67
68
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 66

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



66
67
68
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 66

def start_time
  @start_time
end

Instance Method Details

#to_json(options = {}) ⇒ Object



71
72
73
74
75
76
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 71

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