Class: OpenC3::TcpipServerInterface::InterfaceInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/openc3/interfaces/tcpip_server_interface.rb

Overview

Data class which stores the interface and associated information

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interface, hostname, host_ip, port) ⇒ InterfaceInfo

Returns a new instance of InterfaceInfo.



43
44
45
46
47
48
# File 'lib/openc3/interfaces/tcpip_server_interface.rb', line 43

def initialize(interface, hostname, host_ip, port)
  @interface = interface
  @hostname = hostname
  @host_ip = host_ip
  @port = port
end

Instance Attribute Details

#host_ipObject (readonly)

Returns the value of attribute host_ip.



41
42
43
# File 'lib/openc3/interfaces/tcpip_server_interface.rb', line 41

def host_ip
  @host_ip
end

#hostnameObject (readonly)

Returns the value of attribute hostname.



41
42
43
# File 'lib/openc3/interfaces/tcpip_server_interface.rb', line 41

def hostname
  @hostname
end

#interfaceObject (readonly)

Returns the value of attribute interface.



41
42
43
# File 'lib/openc3/interfaces/tcpip_server_interface.rb', line 41

def interface
  @interface
end

#portObject (readonly)

Returns the value of attribute port.



41
42
43
# File 'lib/openc3/interfaces/tcpip_server_interface.rb', line 41

def port
  @port
end