Class: Gem::Resolv::DNS::SvcParam::Port
| 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
“port” ::Gem::Resolv::DNS::SvcParam – Port for alternative endpoint
Constant Summary
- 
    KeyName =
    
 # File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1969:port 
- 
    KeyNumber =
    
 # File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 19703
::Gem::Resolv::DNS::SvcParam - Inherited
  
Class Method Summary
- 
    
      .new(port)  ⇒ Port 
    
    constructor
    Initialize “port” 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
- 
    
      #port  
    
    readonly
    Portnumber.
Instance Method Summary
- #encode(msg) Internal use only
Constructor Details
    .new(port)  ⇒ Port 
  
Initialize “port” ScvParam.
Class Method Details
.decode(msg)
    This method is for internal use only.
  
  [ GitHub ]
Instance Attribute Details
#port (readonly)
Port number.
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1976
attr_reader :port
Instance Method Details
#encode(msg)
    This method is for internal use only.
  
  [ GitHub ]
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1985
def encode(msg) # :nodoc: msg.put_pack('n', @port) end