Class: MovingsignApi::WriteControlCommand

Inherits:
Command
  • Object
show all
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:

Instance Attribute Summary

Attributes inherited from Command

#receiver, #sender

Instance Method Summary collapse

Methods inherited from Command

#to_bytes

Instance Method Details

#command_codeObject



10
11
12
# File 'lib/movingsign_api/commands/write_control_command.rb', line 10

def command_code
  'W'
end

#subcommand_codeObject



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