Class: Modbus::Register
- Inherits:
-
Object
- Object
- Modbus::Register
- Defined in:
- lib/modbus/register/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#addr ⇒ Object
readonly
Returns the value of attribute addr.
-
#handler ⇒ Object
Returns the value of attribute handler.
Instance Method Summary collapse
-
#initialize(addr) ⇒ Register
constructor
A new instance of Register.
Constructor Details
#initialize(addr) ⇒ Register
Returns a new instance of Register.
13 14 15 |
# File 'lib/modbus/register/base.rb', line 13 def initialize(addr) @addr = addr end |
Instance Attribute Details
#addr ⇒ Object (readonly)
Returns the value of attribute addr.
9 10 11 |
# File 'lib/modbus/register/base.rb', line 9 def addr @addr end |
#handler ⇒ Object
Returns the value of attribute handler.
10 11 12 |
# File 'lib/modbus/register/base.rb', line 10 def handler @handler end |