Class: Twilio::REST::Insights::V2::InboundList::InsightsV2CreatePhoneNumbersReportRequestTimeRange
- Inherits:
-
Object
- Object
- Twilio::REST::Insights::V2::InboundList::InsightsV2CreatePhoneNumbersReportRequestTimeRange
- Defined in:
- lib/twilio-ruby/rest/insights/v2/inbound.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ InsightsV2CreatePhoneNumbersReportRequestTimeRange
constructor
A new instance of InsightsV2CreatePhoneNumbersReportRequestTimeRange.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ InsightsV2CreatePhoneNumbersReportRequestTimeRange
Returns a new instance of InsightsV2CreatePhoneNumbersReportRequestTimeRange.
45 46 47 48 |
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 45 def initialize(payload) @start_time = payload["start_time"] @end_time = payload["end_time"] end |
Instance Attribute Details
#end_time ⇒ Object
44 45 46 |
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 44 def end_time @end_time end |
#start_time ⇒ Object
44 45 46 |
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 44 def start_time @start_time end |
Instance Method Details
#to_json(options = {}) ⇒ Object
49 50 51 52 53 54 |
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 49 def to_json( = {}) { "start_time": @start_time, "end_time": @end_time, }.to_json() end |