123456789_123456789_123456789_123456789_123456789_

Class: Gem::Resolv::DNS::SvcParam::ALPN

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Gem::Resolv::DNS::SvcParam
Defined in: lib/rubygems/vendor/resolv/lib/resolv.rb

Overview

“alpn” ::Gem::Resolv::DNS::SvcParam – Additional supported protocols

Constant Summary

::Gem::Resolv::DNS::SvcParam - Inherited

ClassHash

Class Method Summary

::Gem::Resolv::DNS::SvcParam - Inherited

.key_name

Get the presentation name of the SvcParamKey.

.key_number

Get the registered number of the SvcParamKey.

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(protocol_ids) ⇒ ALPN

Initialize “alpn” ScvParam.

[ GitHub ]

  
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1920

def initialize(protocol_ids)
  @protocol_ids = protocol_ids.map(&:to_str)
end

Class Method Details

.decode(msg)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1928

def self.decode(msg) # :nodoc:
  return self.new(msg.get_string_list)
end

Instance Attribute Details

#protocol_ids (readonly)

Supported protocol IDs.

[ GitHub ]

  
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1915

attr_reader :protocol_ids

Instance Method Details

#encode(msg)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1924

def encode(msg) # :nodoc:
  msg.put_string_list(@protocol_ids)
end