Class: Twilio::REST::Insights::V2::ReportList::VoiceIntegrity
- Inherits:
-
Object
- Object
- Twilio::REST::Insights::V2::ReportList::VoiceIntegrity
- Defined in:
- lib/twilio-ruby/rest/insights/v2/report.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ VoiceIntegrity
constructor
A new instance of VoiceIntegrity.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ VoiceIntegrity
Returns a new instance of VoiceIntegrity.
421 422 423 424 425 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 421 def initialize(payload) @enabled_calls = payload["enabled_calls"] @enabled_percentage = payload["enabled_percentage"] @calls_per_bundle = payload["calls_per_bundle"] end |
Instance Attribute Details
#calls_per_bundle ⇒ Object
420 421 422 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 420 def calls_per_bundle @calls_per_bundle end |
#enabled_calls ⇒ Object
420 421 422 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 420 def enabled_calls @enabled_calls end |
#enabled_percentage ⇒ Object
420 421 422 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 420 def enabled_percentage @enabled_percentage end |
Instance Method Details
#to_json(options = {}) ⇒ Object
426 427 428 429 430 431 432 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 426 def to_json( = {}) { "enabled_calls": @enabled_calls, "enabled_percentage": @enabled_percentage, "calls_per_bundle": @calls_per_bundle, }.to_json() end |