Class: ModBus::Server::Slave

Inherits:
Object
  • Object
show all
Defined in:
lib/rmodbus/server/slave.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSlave

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

#coilsObject

Returns the value of attribute coils.



8
9
10
# File 'lib/rmodbus/server/slave.rb', line 8

def coils
  @coils
end

#discrete_inputsObject

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_registersObject

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_registersObject

Returns the value of attribute input_registers.



8
9
10
# File 'lib/rmodbus/server/slave.rb', line 8

def input_registers
  @input_registers
end