Class: Twilio::REST::Insights::V2::ReportList::InsightsV2CreateAccountReportRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Insights::V2::ReportList::InsightsV2CreateAccountReportRequest
- Defined in:
- lib/twilio-ruby/rest/insights/v2/report.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ InsightsV2CreateAccountReportRequest
constructor
A new instance of InsightsV2CreateAccountReportRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ InsightsV2CreateAccountReportRequest
Returns a new instance of InsightsV2CreateAccountReportRequest.
296 297 298 299 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 296 def initialize(payload) @time_range = payload["time_range"] @filters = payload["filters"] end |
Instance Attribute Details
#filters ⇒ Object
295 296 297 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 295 def filters @filters end |
#time_range ⇒ Object
295 296 297 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 295 def time_range @time_range end |
Instance Method Details
#to_json(options = {}) ⇒ Object
300 301 302 303 304 305 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 300 def to_json( = {}) { "time_range": @time_range, "filters": @filters, }.to_json() end |