Class: Twilio::REST::Insights::V2::InboundList::InsightsV2CreatePhoneNumbersReportRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Insights::V2::InboundList::InsightsV2CreatePhoneNumbersReportRequest
- Defined in:
- lib/twilio-ruby/rest/insights/v2/inbound.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.
27 28 29 30 31 |
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 27 def initialize(payload) @time_range = payload["time_range"] @filters = payload["filters"] @size = payload["size"] end |
Instance Attribute Details
#filters ⇒ Object
26 27 28 |
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 26 def filters @filters end |
#size ⇒ Object
26 27 28 |
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 26 def size @size end |
#time_range ⇒ Object
26 27 28 |
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 26 def time_range @time_range end |
Instance Method Details
#to_json(options = {}) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 32 def to_json( = {}) { "time_range": @time_range, "filters": @filters, "size": @size, }.to_json() end |