Class: Gem::Resolv::DNS::SvcParam::IPv4Hint
- Inherits:
-
Gem::Resolv::DNS::SvcParam
- Object
- Gem::Resolv::DNS::SvcParam
- Gem::Resolv::DNS::SvcParam::IPv4Hint
- Defined in:
- lib/rubygems/vendor/resolv/lib/resolv.rb
Overview
“ipv4hint” SvcParam – IPv4 address hints
Constant Summary collapse
- KeyName =
:ipv4hint
- KeyNumber =
4
Constants inherited from Gem::Resolv::DNS::SvcParam
Instance Attribute Summary collapse
-
#addresses ⇒ Object
readonly
Set of IPv4 addresses.
Class Method Summary collapse
-
.decode(msg) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#encode(msg) ⇒ Object
:nodoc:.
-
#initialize(addresses) ⇒ IPv4Hint
constructor
Initialize “ipv4hint” ScvParam.
Methods inherited from Gem::Resolv::DNS::SvcParam
Constructor Details
Instance Attribute Details
#addresses ⇒ Object (readonly)
Set of IPv4 addresses.
2006 2007 2008 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2006 def addresses @addresses end |
Class Method Details
Instance Method Details
#encode(msg) ⇒ Object
:nodoc:
2015 2016 2017 2018 2019 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2015 def encode(msg) # :nodoc: @addresses.each do |address| msg.put_bytes(address.address) end end |