Class: Gem::Resolv::DNS::SvcParam
- Inherits:
-
Object
- Object
- Gem::Resolv::DNS::SvcParam
- Defined in:
- lib/rubygems/vendor/resolv/lib/resolv.rb
Overview
Base class for SvcParam. [RFC9460]
Defined Under Namespace
Classes: ALPN, DoHPath, Generic, IPv4Hint, IPv6Hint, Mandatory, NoDefaultALPN, Port
Constant Summary collapse
- ClassHash =
:nodoc:
Hash.new do |h, key| # :nodoc: case key when Integer Generic.create(key) when /\Akey(?<key>\d+)\z/ Generic.create(key.to_int) when Symbol raise KeyError, "unknown key #{key}" else raise TypeError, 'key must be either String or Symbol' end end
Class Method Summary collapse
-
.key_name ⇒ Object
Get the presentation name of the SvcParamKey.
-
.key_number ⇒ Object
Get the registered number of the SvcParamKey.
Class Method Details
.key_name ⇒ Object
Get the presentation name of the SvcParamKey.
1827 1828 1829 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1827 def self.key_name const_get(:KeyName) end |
.key_number ⇒ Object
Get the registered number of the SvcParamKey.
1834 1835 1836 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1834 def self.key_number const_get(:KeyNumber) end |