Class: ModBus::Server::Slave
- Inherits:
-
Object
- Object
- ModBus::Server::Slave
- Defined in:
- lib/rmodbus/server/slave.rb
Instance Attribute Summary collapse
-
#coils ⇒ Object
Returns the value of attribute coils.
-
#discrete_inputs ⇒ Object
Returns the value of attribute discrete_inputs.
-
#holding_registers ⇒ Object
Returns the value of attribute holding_registers.
-
#input_registers ⇒ Object
Returns the value of attribute input_registers.
Instance Method Summary collapse
-
#initialize ⇒ Slave
constructor
A new instance of Slave.
Constructor Details
#initialize ⇒ Slave
Returns a new instance of Slave.
10 11 12 13 14 15 |
# File 'lib/rmodbus/server/slave.rb', line 10 def initialize @coils = [] @discrete_inputs = [] @holding_registers = [] @input_registers = [] end |
Instance Attribute Details
#coils ⇒ Object
Returns the value of attribute coils.
8 9 10 |
# File 'lib/rmodbus/server/slave.rb', line 8 def coils @coils end |
#discrete_inputs ⇒ Object
Returns the value of attribute discrete_inputs.
8 9 10 |
# File 'lib/rmodbus/server/slave.rb', line 8 def discrete_inputs @discrete_inputs end |
#holding_registers ⇒ Object
Returns the value of attribute holding_registers.
8 9 10 |
# File 'lib/rmodbus/server/slave.rb', line 8 def holding_registers @holding_registers end |
#input_registers ⇒ Object
Returns the value of attribute input_registers.
8 9 10 |
# File 'lib/rmodbus/server/slave.rb', line 8 def input_registers @input_registers end |