class SvcbRrPatch::SvcParams::Ech
Attributes
echconfiglist[R]
Public Class Methods
new(echconfiglist)
click to toggle source
@param echconfiglist [Array of ECHConfig]
# File lib/svcb_rr_patch/svc_params/ech.rb, line 7 def initialize(echconfiglist) @echconfiglist = echconfiglist end
Public Instance Methods
encode()
click to toggle source
@return [String]
# File lib/svcb_rr_patch/svc_params/ech.rb, line 12 def encode @echconfiglist.map(&:encode).join.then { |s| [s.length].pack('n') + s } end