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.



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

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.



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

def host_ip
  @host_ip
end

#hostnameObject (readonly)

Returns the value of attribute hostname.



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

def hostname
  @hostname
end

#interfaceObject (readonly)

Returns the value of attribute interface.



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

def interface
  @interface
end

#portObject (readonly)

Returns the value of attribute port.



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

def port
  @port
end