Class: DNS::ResolveHost::Nameserver
- Inherits:
-
Struct
- Object
- Struct
- DNS::ResolveHost::Nameserver
- Defined in:
- lib/dns/resolve_host/nameserver.rb
Instance Attribute Summary collapse
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
Instance Attribute Details
#ip_address ⇒ Object
Returns the value of attribute ip_address
3 4 5 |
# File 'lib/dns/resolve_host/nameserver.rb', line 3 def ip_address @ip_address end |
#port ⇒ Object
Returns the value of attribute port
3 4 5 |
# File 'lib/dns/resolve_host/nameserver.rb', line 3 def port @port end |
Instance Method Details
#to_a ⇒ Object
4 5 6 |
# File 'lib/dns/resolve_host/nameserver.rb', line 4 def to_a [ip_address, port] end |