Class: DNSSD::Target

Inherits:
Struct
  • Object
show all
Defined in:
lib/dns-sd/target.rb

Overview

A representation of a SRV record target.

This is the end result of pretty much everything you want to get out of service discovery: a hostname to resolve, and a port to connect to.

Instance Attribute Summary collapse

Instance Attribute Details

#hostnameObject

Returns the value of attribute hostname

Returns:

  • (Object)

    the current value of hostname



6
7
8
# File 'lib/dns-sd/target.rb', line 6

def hostname
  @hostname
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



6
7
8
# File 'lib/dns-sd/target.rb', line 6

def port
  @port
end