class Quilt::Performance::Connection
Attributes
downlink[RW]
effective_type[RW]
rtt[RW]
type[RW]
Public Class Methods
from_params(params)
click to toggle source
# File lib/quilt_rails/performance/connection.rb, line 11 def self.from_params(params) params.transform_keys! { |key| key.underscore.to_sym } Connection.new( downlink: params[:downlink], effective_type: params[:effective_type], rtt: params[:rtt], type: params[:type] ) end
new(downlink:, effective_type:, rtt:, type:)
click to toggle source
# File lib/quilt_rails/performance/connection.rb, line 22 def initialize(downlink:, effective_type:, rtt:, type:) @downlink = downlink @effective_type = effective_type @rtt = rtt @type = type end