class Resolv::DNS::Resource::IN::WKS
Public Class Methods
(Resolv::DNS::Message::MessageDecoder msg) → instance
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/resolv/0/resolv.rbs, line 1101
def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance
(String | Resolv::IPv4 address, Integer protocol, Integer bitmap) → untyped
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/resolv/0/resolv.rbs, line 1131
def initialize: (String | Resolv::IPv4 address, Integer protocol, Integer bitmap) -> untyped
Public Instance Methods
() → Resolv::IPv4
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/resolv/0/resolv.rbs, line 1106
def address: () -> Resolv::IPv4
The host these services run on.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/resolv/0/resolv.rbs, line 1115
def bitmap: () -> Integer
A bit map of enabled services on this host.
If protocol is 6 (TCP) then the 26th bit corresponds to the SMTP service (port 25). If this bit is set, then an SMTP server should be listening on TCP port 25; if zero, SMTP service is not supported.
(Resolv::DNS::Message::MessageEncoder msg) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/resolv/0/resolv.rbs, line 1117
def encode_rdata: (Resolv::DNS::Message::MessageEncoder msg) -> void