Class: Twilio::REST::Insights::V2::ReportList::AccountReportCallState
- Inherits:
-
Object
- Object
- Twilio::REST::Insights::V2::ReportList::AccountReportCallState
- Defined in:
- lib/twilio-ruby/rest/insights/v2/report.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ AccountReportCallState
constructor
A new instance of AccountReportCallState.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ AccountReportCallState
Returns a new instance of AccountReportCallState.
64 65 66 67 68 69 70 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 64 def initialize(payload) @completed = payload["completed"] @fail = payload["fail"] @busy = payload["busy"] @noanswer = payload["noanswer"] @canceled = payload["canceled"] end |
Instance Attribute Details
#busy ⇒ Object
63 64 65 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 63 def busy @busy end |
#canceled ⇒ Object
63 64 65 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 63 def canceled @canceled end |
#completed ⇒ Object
63 64 65 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 63 def completed @completed end |
#fail ⇒ Object
63 64 65 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 63 def fail @fail end |
#noanswer ⇒ Object
63 64 65 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 63 def noanswer @noanswer end |
Instance Method Details
#to_json(options = {}) ⇒ Object
71 72 73 74 75 76 77 78 79 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 71 def to_json( = {}) { "completed": @completed, "fail": @fail, "busy": @busy, "noanswer": @noanswer, "canceled": @canceled, }.to_json() end |