Class: DNS::ResolveHost::Nameserver

Inherits:
Struct
  • Object
show all
Defined in:
lib/dns/resolve_host/nameserver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ip_addressObject

Returns the value of attribute ip_address

Returns:

  • (Object)

    the current value of ip_address



3
4
5
# File 'lib/dns/resolve_host/nameserver.rb', line 3

def ip_address
  @ip_address
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



3
4
5
# File 'lib/dns/resolve_host/nameserver.rb', line 3

def port
  @port
end

Instance Method Details

#to_aObject



4
5
6
# File 'lib/dns/resolve_host/nameserver.rb', line 4

def to_a
  [ip_address, port]
end