Class: Resolv::DNS::SvcParam::ALPN
- Inherits:
-
Resolv::DNS::SvcParam
- Object
- Resolv::DNS::SvcParam
- Resolv::DNS::SvcParam::ALPN
- Defined in:
- lib/resolv.rb
Overview
“alpn” SvcParam – Additional supported protocols
Constant Summary collapse
- KeyName =
:alpn
- KeyNumber =
1
Constants inherited from Resolv::DNS::SvcParam
Instance Attribute Summary collapse
-
#protocol_ids ⇒ Object
readonly
Supported protocol IDs.
Class Method Summary collapse
-
.decode(msg) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#encode(msg) ⇒ Object
:nodoc:.
-
#initialize(protocol_ids) ⇒ ALPN
constructor
Initialize “alpn” ScvParam.
Methods inherited from Resolv::DNS::SvcParam
Constructor Details
#initialize(protocol_ids) ⇒ ALPN
Initialize “alpn” ScvParam.
1932 1933 1934 |
# File 'lib/resolv.rb', line 1932 def initialize(protocol_ids) @protocol_ids = protocol_ids.map(&:to_str) end |
Instance Attribute Details
#protocol_ids ⇒ Object (readonly)
Supported protocol IDs.
1927 1928 1929 |
# File 'lib/resolv.rb', line 1927 def protocol_ids @protocol_ids end |
Class Method Details
.decode(msg) ⇒ Object
:nodoc:
1940 1941 1942 |
# File 'lib/resolv.rb', line 1940 def self.decode(msg) # :nodoc: return self.new(msg.get_string_list) end |
Instance Method Details
#encode(msg) ⇒ Object
:nodoc:
1936 1937 1938 |
# File 'lib/resolv.rb', line 1936 def encode(msg) # :nodoc: msg.put_string_list(@protocol_ids) end |