Class: Resolv::DNS::SvcParam
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | lib/resolv.rb |
Overview
Base class for SvcParam
. [RFC9460]
Constant Summary
-
ClassHash =
Internal use only
# File 'lib/resolv.rb', line 1835Hash.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
-
.key_name
Get the presentation name of the SvcParamKey.
-
.key_number
Get the registered number of the SvcParamKey.
Class Method Details
.key_name
Get the presentation name of the SvcParamKey.
# File 'lib/resolv.rb', line 1824
def self.key_name const_get(:KeyName) end
.key_number
Get the registered number of the SvcParamKey.
# File 'lib/resolv.rb', line 1831
def self.key_number const_get(:KeyNumber) end