Class: StarEthernet::Config
- Inherits:
-
Object
- Object
- StarEthernet::Config
- Defined in:
- lib/star_ethernet/config.rb
Instance Attribute Summary collapse
-
#asb ⇒ Object
Returns the value of attribute asb.
-
#asb_status_size ⇒ Object
Returns the value of attribute asb_status_size.
-
#fetch_time_interval ⇒ Object
Returns the value of attribute fetch_time_interval.
-
#nsb ⇒ Object
Returns the value of attribute nsb.
-
#raw_socket_print_port ⇒ Object
Returns the value of attribute raw_socket_print_port.
-
#retry_counts ⇒ Object
Returns the value of attribute retry_counts.
-
#status_acquisition_port ⇒ Object
Returns the value of attribute status_acquisition_port.
-
#telnet_port ⇒ Object
Returns the value of attribute telnet_port.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #set_default ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 |
# File 'lib/star_ethernet/config.rb', line 6 def initialize set_default end |
Instance Attribute Details
#asb ⇒ Object
Returns the value of attribute asb.
3 4 5 |
# File 'lib/star_ethernet/config.rb', line 3 def asb @asb end |
#asb_status_size ⇒ Object
Returns the value of attribute asb_status_size.
3 4 5 |
# File 'lib/star_ethernet/config.rb', line 3 def asb_status_size @asb_status_size end |
#fetch_time_interval ⇒ Object
Returns the value of attribute fetch_time_interval.
3 4 5 |
# File 'lib/star_ethernet/config.rb', line 3 def fetch_time_interval @fetch_time_interval end |
#nsb ⇒ Object
Returns the value of attribute nsb.
3 4 5 |
# File 'lib/star_ethernet/config.rb', line 3 def nsb @nsb end |
#raw_socket_print_port ⇒ Object
Returns the value of attribute raw_socket_print_port.
3 4 5 |
# File 'lib/star_ethernet/config.rb', line 3 def raw_socket_print_port @raw_socket_print_port end |
#retry_counts ⇒ Object
Returns the value of attribute retry_counts.
3 4 5 |
# File 'lib/star_ethernet/config.rb', line 3 def retry_counts @retry_counts end |
#status_acquisition_port ⇒ Object
Returns the value of attribute status_acquisition_port.
3 4 5 |
# File 'lib/star_ethernet/config.rb', line 3 def status_acquisition_port @status_acquisition_port end |
#telnet_port ⇒ Object
Returns the value of attribute telnet_port.
3 4 5 |
# File 'lib/star_ethernet/config.rb', line 3 def telnet_port @telnet_port end |
Instance Method Details
#set_default ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/star_ethernet/config.rb', line 10 def set_default @raw_socket_print_port = 9100 @status_acquisition_port = 9101 @telnet_port = 23 @asb_status_size = 9 @fetch_time_interval = 0.1 @retry_counts = 300 @asb = false @nsb = false end |