Class: OpenC3::TcpipServerInterface::InterfaceInfo
- Defined in:
- lib/openc3/interfaces/tcpip_server_interface.rb
Overview
Data class which stores the interface and associated information
Instance Attribute Summary collapse
-
#host_ip ⇒ Object
readonly
Returns the value of attribute host_ip.
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
-
#interface ⇒ Object
readonly
Returns the value of attribute interface.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(interface, hostname, host_ip, port) ⇒ InterfaceInfo
constructor
A new instance of InterfaceInfo.
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_ip ⇒ Object (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 |
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
40 41 42 |
# File 'lib/openc3/interfaces/tcpip_server_interface.rb', line 40 def hostname @hostname end |
#interface ⇒ Object (readonly)
Returns the value of attribute interface.
40 41 42 |
# File 'lib/openc3/interfaces/tcpip_server_interface.rb', line 40 def interface @interface end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
40 41 42 |
# File 'lib/openc3/interfaces/tcpip_server_interface.rb', line 40 def port @port end |