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_datetime = payload["start_datetime"]
        @end_datetime = payload["end_datetime"]
end

Instance Attribute Details

#end_datetimeObject

Parameters:



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

def end_datetime
  @end_datetime
end

#start_datetimeObject

Parameters:



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

def start_datetime
  @start_datetime
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_datetime": @start_datetime,
        "end_datetime": @end_datetime,
}.to_json(options)
end