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 1920:alpn
-
KeyNumber =
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 19211
::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 1932
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 1940
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 1927
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 1936
def encode(msg) # :nodoc: msg.put_string_list(@protocol_ids) end