Class: Twilio::REST::Insights::V2::ReportList::AccountReportKYTOutboundCarrierCalling

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/insights/v2/report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_carrierObject

Parameters:



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_callingObject

Parameters:



130
131
132
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 130

def branded_calling
  @branded_calling
end

#long_duration_calls_percentageObject

Parameters:



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_percentageObject

Parameters:



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_percentageObject

Parameters:



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_shakenObject

Parameters:



130
131
132
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 130

def stir_shaken
  @stir_shaken
end

#unique_called_numbersObject

Parameters:



130
131
132
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 130

def unique_called_numbers
  @unique_called_numbers
end

#unique_calling_numbersObject

Parameters:



130
131
132
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 130

def unique_calling_numbers
  @unique_calling_numbers
end

#voice_integrityObject

Parameters:



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(options = {})
{
        "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(options)
end