Class: Twilio::REST::Insights::V2::ReportList::AccountReportAnsweringMachineDetection
- Inherits:
-
Object
- Object
- Twilio::REST::Insights::V2::ReportList::AccountReportAnsweringMachineDetection
- Defined in:
- lib/twilio-ruby/rest/insights/v2/report.rb
Instance Attribute Summary collapse
- #answered_by_human_percentage ⇒ Object
- #answered_by_machine_percentage ⇒ Object
- #total_calls ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ AccountReportAnsweringMachineDetection
constructor
A new instance of AccountReportAnsweringMachineDetection.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ AccountReportAnsweringMachineDetection
Returns a new instance of AccountReportAnsweringMachineDetection.
27 28 29 30 31 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 27 def initialize(payload) @total_calls = payload["total_calls"] @answered_by_human_percentage = payload["answered_by_human_percentage"] @answered_by_machine_percentage = payload["answered_by_machine_percentage"] end |
Instance Attribute Details
#answered_by_human_percentage ⇒ Object
26 27 28 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 26 def answered_by_human_percentage @answered_by_human_percentage end |
#answered_by_machine_percentage ⇒ Object
26 27 28 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 26 def answered_by_machine_percentage @answered_by_machine_percentage end |
#total_calls ⇒ Object
26 27 28 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 26 def total_calls @total_calls end |
Instance Method Details
#to_json(options = {}) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 32 def to_json( = {}) { "total_calls": @total_calls, "answered_by_human_percentage": @answered_by_human_percentage, "answered_by_machine_percentage": @answered_by_machine_percentage, }.to_json() end |