Class: Twilio::REST::Insights::V2::ReportList::VoiceIntegrityCallsPerBundle
- Inherits:
-
Object
- Object
- Twilio::REST::Insights::V2::ReportList::VoiceIntegrityCallsPerBundle
- Defined in:
- lib/twilio-ruby/rest/insights/v2/report.rb
Instance Attribute Summary collapse
- #answer_rate ⇒ Object
- #bundle_sid ⇒ Object
- #enabled_phonenumbers ⇒ Object
- #human_answer_rate ⇒ Object
- #total_calls ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ VoiceIntegrityCallsPerBundle
constructor
A new instance of VoiceIntegrityCallsPerBundle.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ VoiceIntegrityCallsPerBundle
Returns a new instance of VoiceIntegrityCallsPerBundle.
442 443 444 445 446 447 448 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 442 def initialize(payload) @bundle_sid = payload["bundle_sid"] @enabled_phonenumbers = payload["enabled_phonenumbers"] @total_calls = payload["total_calls"] @answer_rate = payload["answer_rate"] @human_answer_rate = payload["human_answer_rate"] end |
Instance Attribute Details
#answer_rate ⇒ Object
441 442 443 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 441 def answer_rate @answer_rate end |
#bundle_sid ⇒ Object
441 442 443 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 441 def bundle_sid @bundle_sid end |
#enabled_phonenumbers ⇒ Object
441 442 443 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 441 def enabled_phonenumbers @enabled_phonenumbers end |
#human_answer_rate ⇒ Object
441 442 443 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 441 def human_answer_rate @human_answer_rate end |
#total_calls ⇒ Object
441 442 443 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 441 def total_calls @total_calls end |
Instance Method Details
#to_json(options = {}) ⇒ Object
449 450 451 452 453 454 455 456 457 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 449 def to_json( = {}) { "bundle_sid": @bundle_sid, "enabled_phonenumbers": @enabled_phonenumbers, "total_calls": @total_calls, "answer_rate": @answer_rate, "human_answer_rate": @human_answer_rate, }.to_json() end |