Class: MovingsignApi::SetClockCommand

Inherits:
WriteControlCommand show all
Defined in:
lib/movingsign_api/commands/set_clock_command.rb

Overview

Sets the signs date + time

Instance Attribute Summary collapse

Attributes inherited from Command

#receiver, #sender

Instance Method Summary collapse

Methods inherited from WriteControlCommand

#command_code

Methods inherited from Command

#command_code, #to_bytes

Instance Attribute Details

#datetimeTime

Returns:

  • (Time)


7
8
9
# File 'lib/movingsign_api/commands/set_clock_command.rb', line 7

def datetime
  @datetime
end

Instance Method Details

#subcommand_codeObject



9
10
11
# File 'lib/movingsign_api/commands/set_clock_command.rb', line 9

def subcommand_code
  'A'
end