Class: Twilio::REST::Insights::V2::InboundList::InsightsV2CreatePhoneNumbersReportRequestTimeRange

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ InsightsV2CreatePhoneNumbersReportRequestTimeRange

Returns a new instance of InsightsV2CreatePhoneNumbersReportRequestTimeRange.



45
46
47
48
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 45

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



44
45
46
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 44

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



44
45
46
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 44

def start_time
  @start_time
end

Instance Method Details

#to_json(options = {}) ⇒ Object



49
50
51
52
53
54
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 49

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