Class: MovingsignApi::WriteControlCommand
- Defined in:
- lib/movingsign_api/commands/write_control_command.rb
Overview
Write control command base class, subclassed by actual implementations
In subclasses, be sure to implement:
-
#subcommand_payload_bytes
Direct Known Subclasses
HardResetCommand, SetClockCommand, SetSoundCommand, SoftwareResetCommand
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
Instance Method Details
#command_code ⇒ Object
10 11 12 |
# File 'lib/movingsign_api/commands/write_control_command.rb', line 10 def command_code 'W' end |
#subcommand_code ⇒ Object
14 15 16 |
# File 'lib/movingsign_api/commands/write_control_command.rb', line 14 def subcommand_code raise MovingsignApi::NotImplementedError, "Needs to be implemented in subclass." end |