Class: Twilio::REST::Insights::V2::OutboundList::InsightsV2CreatePhoneNumbersReportRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Insights::V2::OutboundList::InsightsV2CreatePhoneNumbersReportRequest
- Defined in:
- lib/twilio-ruby/rest/insights/v2/outbound.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ InsightsV2CreatePhoneNumbersReportRequest
constructor
A new instance of InsightsV2CreatePhoneNumbersReportRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ InsightsV2CreatePhoneNumbersReportRequest
Returns a new instance of InsightsV2CreatePhoneNumbersReportRequest.
49 50 51 52 53 |
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 49 def initialize(payload) @time_range = payload["time_range"] @filters = payload["filters"] @size = payload["size"] end |
Instance Attribute Details
#filters ⇒ Object
48 49 50 |
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 48 def filters @filters end |
#size ⇒ Object
48 49 50 |
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 48 def size @size end |
#time_range ⇒ Object
48 49 50 |
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 48 def time_range @time_range end |
Instance Method Details
#to_json(options = {}) ⇒ Object
54 55 56 57 58 59 60 |
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 54 def to_json( = {}) { "time_range": @time_range, "filters": @filters, "size": @size, }.to_json() end |