123456789_123456789_123456789_123456789_123456789_

Class: Resolv::DNS::SvcParam::ALPN

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Resolv::DNS::SvcParam
Defined in: lib/resolv.rb

Overview

“alpn” ::Resolv::DNS::SvcParam – Additional supported protocols

Constant Summary

::Resolv::DNS::SvcParam - Inherited

ClassHash

Class Method Summary

::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

Instance Method Summary

Constructor Details

.new(protocol_ids) ⇒ ALPN

Initialize “alpn” ScvParam.

[ GitHub ]

  
# File 'lib/resolv.rb', line 1932

def initialize(protocol_ids)
  @protocol_ids = protocol_ids.map(&:to_str)
end

Class Method Details

.decode(msg)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/resolv.rb', line 1940

def self.decode(msg) # :nodoc:
  return self.new(msg.get_string_list)
end

Instance Attribute Details

#protocol_ids (readonly)

Supported protocol IDs.

[ GitHub ]

  
# File 'lib/resolv.rb', line 1927

attr_reader :protocol_ids

Instance Method Details

#encode(msg)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/resolv.rb', line 1936

def encode(msg) # :nodoc:
  msg.put_string_list(@protocol_ids)
end