Class: DNSSD::Target
- Inherits:
-
Struct
- Object
- Struct
- DNSSD::Target
- 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
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Attribute Details
#hostname ⇒ Object
Returns the value of attribute hostname
6 7 8 |
# File 'lib/dns-sd/target.rb', line 6 def hostname @hostname end |
#port ⇒ Object
Returns the value of attribute port
6 7 8 |
# File 'lib/dns-sd/target.rb', line 6 def port @port end |