Class: Twilio::REST::Insights::V2::ReportList::AccountReportKYTOutboundCarrierCalling
- Inherits:
-
Object
- Object
- Twilio::REST::Insights::V2::ReportList::AccountReportKYTOutboundCarrierCalling
- Defined in:
- lib/twilio-ruby/rest/insights/v2/report.rb
Instance Attribute Summary collapse
- #blocked_calls_by_carrier ⇒ Object
- #branded_calling ⇒ Object
- #long_duration_calls_percentage ⇒ Object
- #potential_robocalls_percentage ⇒ Object
- #short_duration_calls_percentage ⇒ Object
- #stir_shaken ⇒ Object
- #unique_called_numbers ⇒ Object
- #unique_calling_numbers ⇒ Object
- #voice_integrity ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ AccountReportKYTOutboundCarrierCalling
constructor
A new instance of AccountReportKYTOutboundCarrierCalling.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ AccountReportKYTOutboundCarrierCalling
Returns a new instance of AccountReportKYTOutboundCarrierCalling.
131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 131 def initialize(payload) @unique_calling_numbers = payload["unique_calling_numbers"] @unique_called_numbers = payload["unique_called_numbers"] @blocked_calls_by_carrier = payload["blocked_calls_by_carrier"] @short_duration_calls_percentage = payload["short_duration_calls_percentage"] @long_duration_calls_percentage = payload["long_duration_calls_percentage"] @potential_robocalls_percentage = payload["potential_robocalls_percentage"] @branded_calling = payload["branded_calling"] @voice_integrity = payload["voice_integrity"] @stir_shaken = payload["stir_shaken"] end |
Instance Attribute Details
#blocked_calls_by_carrier ⇒ Object
130 131 132 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 130 def blocked_calls_by_carrier @blocked_calls_by_carrier end |
#branded_calling ⇒ Object
130 131 132 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 130 def branded_calling @branded_calling end |
#long_duration_calls_percentage ⇒ Object
130 131 132 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 130 def long_duration_calls_percentage @long_duration_calls_percentage end |
#potential_robocalls_percentage ⇒ Object
130 131 132 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 130 def potential_robocalls_percentage @potential_robocalls_percentage end |
#short_duration_calls_percentage ⇒ Object
130 131 132 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 130 def short_duration_calls_percentage @short_duration_calls_percentage end |
#stir_shaken ⇒ Object
130 131 132 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 130 def stir_shaken @stir_shaken end |
#unique_called_numbers ⇒ Object
130 131 132 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 130 def unique_called_numbers @unique_called_numbers end |
#unique_calling_numbers ⇒ Object
130 131 132 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 130 def unique_calling_numbers @unique_calling_numbers end |
#voice_integrity ⇒ Object
130 131 132 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 130 def voice_integrity @voice_integrity end |
Instance Method Details
#to_json(options = {}) ⇒ Object
142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 142 def to_json( = {}) { "unique_calling_numbers": @unique_calling_numbers, "unique_called_numbers": @unique_called_numbers, "blocked_calls_by_carrier": @blocked_calls_by_carrier, "short_duration_calls_percentage": @short_duration_calls_percentage, "long_duration_calls_percentage": @long_duration_calls_percentage, "potential_robocalls_percentage": @potential_robocalls_percentage, "branded_calling": @branded_calling, "voice_integrity": @voice_integrity, "stir_shaken": @stir_shaken, }.to_json() end |