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
-
KeyName =
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1908:alpn
-
KeyNumber =
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 19091
::Gem::Resolv::DNS::SvcParam
- Inherited
Class Method Summary
-
.new(protocol_ids) ⇒ ALPN
constructor
Initialize “alpn” ScvParam.
- .decode(msg) Internal use only
::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
-
#protocol_ids
readonly
Supported protocol IDs.
Instance Method Summary
- #encode(msg) Internal use only
Constructor Details
.new(protocol_ids) ⇒ ALPN
Initialize “alpn” ScvParam.
# 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.
# 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