Class: MovingsignApi::WriteTextCommand
- Defined in:
- lib/movingsign_api/commands/write_text_command.rb
Overview
Writes text to a sign
Instance Attribute Summary collapse
-
#align_mode ⇒ Object
Align mode to use.
-
#dayofweek_mask ⇒ Object
Day of week mask.
-
#display_mode ⇒ Object
Display mode to use.
-
#display_pause ⇒ Object
Display pause between screens of information.
-
#display_speed ⇒ Object
Display speed of effects.
-
#end_time ⇒ Object
Display end time.
-
#file_handle ⇒ Object
Index of the file to write to.
-
#start_time ⇒ Object
Display start time.
-
#text ⇒ Object
Text to display.
Attributes inherited from Command
Instance Method Summary collapse
-
#command_code ⇒ String
Returns the command identifier string.
Methods inherited from Command
Instance Attribute Details
#align_mode ⇒ Object
Align mode to use. See AlignMode
39 40 41 |
# File 'lib/movingsign_api/commands/write_text_command.rb', line 39 def align_mode @align_mode end |
#dayofweek_mask ⇒ Object
Day of week mask. See specification for an explaination of this parameter
34 35 36 |
# File 'lib/movingsign_api/commands/write_text_command.rb', line 34 def dayofweek_mask @dayofweek_mask end |
#display_mode ⇒ Object
Display mode to use. See DisplayMode
19 20 21 |
# File 'lib/movingsign_api/commands/write_text_command.rb', line 19 def display_mode @display_mode end |
#display_pause ⇒ Object
Display pause between screens of information. See DisplayPause
29 30 31 |
# File 'lib/movingsign_api/commands/write_text_command.rb', line 29 def display_pause @display_pause end |
#display_speed ⇒ Object
Display speed of effects. See DisplaySpeed
24 25 26 |
# File 'lib/movingsign_api/commands/write_text_command.rb', line 24 def display_speed @display_speed end |
#end_time ⇒ Object
work in progress
Display end time
51 52 53 |
# File 'lib/movingsign_api/commands/write_text_command.rb', line 51 def end_time @end_time end |
#file_handle ⇒ Object
Index of the file to write to. 0 - 35 (363 total). See FileHandle
14 15 16 |
# File 'lib/movingsign_api/commands/write_text_command.rb', line 14 def file_handle @file_handle end |
#start_time ⇒ Object
work in progress
Display start time
45 46 47 |
# File 'lib/movingsign_api/commands/write_text_command.rb', line 45 def start_time @start_time end |
#text ⇒ Object
Text to display
56 57 58 |
# File 'lib/movingsign_api/commands/write_text_command.rb', line 56 def text @text end |
Instance Method Details
#command_code ⇒ String
Returns the command identifier string. See specification for list of valid command codes.
‘A’ for the “Write Text” command
80 81 82 |
# File 'lib/movingsign_api/commands/write_text_command.rb', line 80 def command_code 'A' end |