Class: StarEthernet::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/star_ethernet/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#asbObject

Returns the value of attribute asb.



3
4
5
# File 'lib/star_ethernet/config.rb', line 3

def asb
  @asb
end

#asb_status_sizeObject

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_intervalObject

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

#nsbObject

Returns the value of attribute nsb.



3
4
5
# File 'lib/star_ethernet/config.rb', line 3

def nsb
  @nsb
end

#raw_socket_print_portObject

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_countsObject

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_portObject

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_portObject

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_defaultObject



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