Class: Twilio::REST::Insights::V2::ReportList::InsightsV2CreateAccountReportRequestTimeRange
- Inherits:
-
Object
- Object
- Twilio::REST::Insights::V2::ReportList::InsightsV2CreateAccountReportRequestTimeRange
- Defined in:
- lib/twilio-ruby/rest/insights/v2/report.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ InsightsV2CreateAccountReportRequestTimeRange
constructor
A new instance of InsightsV2CreateAccountReportRequestTimeRange.
- #to_json(options = {}) ⇒ Object
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_time ⇒ Object
311 312 313 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 311 def end_time @end_time end |
#start_time ⇒ Object
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( = {}) { "start_time": @start_time, "end_time": @end_time, }.to_json() end |