Class: Gem::Resolv::DNS::SvcParam::Mandatory
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
“mandatory” ::Gem::Resolv::DNS::SvcParam
– Mandatory
keys in service binding RR
Constant Summary
-
KeyName =
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1888:mandatory
-
KeyNumber =
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 18890
::Gem::Resolv::DNS::SvcParam
- Inherited
Class Method Summary
-
.new(keys) ⇒ Mandatory
constructor
Initialize “mandatory” 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
-
#keys
readonly
Mandatory
keys.
Instance Method Summary
- #encode(msg) Internal use only
Constructor Details
.new(keys) ⇒ Mandatory
Initialize “mandatory” ScvParam.
Class Method Details
.decode(msg)
This method is for internal use only.
[ GitHub ]
Instance Attribute Details
#keys (readonly)
Mandatory
keys.
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1895
attr_reader :keys
Instance Method Details
#encode(msg)
This method is for internal use only.
[ GitHub ]
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1904
def encode(msg) # :nodoc: @keys.sort.each do |key| msg.put_pack('n', key) end end