Class: Twilio::REST::Insights::V2::ReportList::AccountReportNetworkIssuesTwilioGateway

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) ⇒ AccountReportNetworkIssuesTwilioGateway

Returns a new instance of AccountReportNetworkIssuesTwilioGateway.



200
201
202
203
204
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 200

def initialize(payload)
        @high_latency_percentage = payload["high_latency_percentage"]
        @high_packet_loss_percentage = payload["high_packet_loss_percentage"]
        @high_jitter_percentage = payload["high_jitter_percentage"]
end

Instance Attribute Details

#high_jitter_percentageObject

Parameters:



199
200
201
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 199

def high_jitter_percentage
  @high_jitter_percentage
end

#high_latency_percentageObject

Parameters:



199
200
201
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 199

def high_latency_percentage
  @high_latency_percentage
end

#high_packet_loss_percentageObject

Parameters:



199
200
201
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 199

def high_packet_loss_percentage
  @high_packet_loss_percentage
end

Instance Method Details

#to_json(options = {}) ⇒ Object



205
206
207
208
209
210
211
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 205

def to_json(options = {})
{
        "high_latency_percentage": @high_latency_percentage,
        "high_packet_loss_percentage": @high_packet_loss_percentage,
        "high_jitter_percentage": @high_jitter_percentage,
}.to_json(options)
end