Class: MovingsignApi::DisplayPause
- Inherits:
-
Object
- Object
- MovingsignApi::DisplayPause
- Includes:
- Utilities
- Defined in:
- lib/movingsign_api/commands/internal/display_pause.rb
Overview
Text display pause setting (in seconds, 0 - 9)
Instance Attribute Summary collapse
-
#seconds ⇒ Integer
Seconds.
Instance Method Summary collapse
-
#initialize(seconds) ⇒ DisplayPause
constructor
A new instance of DisplayPause.
- #to_bytes ⇒ Object
Constructor Details
#initialize(seconds) ⇒ DisplayPause
Returns a new instance of DisplayPause.
13 14 15 |
# File 'lib/movingsign_api/commands/internal/display_pause.rb', line 13 def initialize(seconds) @seconds = parse_seconds(seconds) end |
Instance Attribute Details
#seconds ⇒ Integer
Returns seconds.
10 11 12 |
# File 'lib/movingsign_api/commands/internal/display_pause.rb', line 10 def seconds @seconds end |
Instance Method Details
#to_bytes ⇒ Object
17 18 19 |
# File 'lib/movingsign_api/commands/internal/display_pause.rb', line 17 def to_bytes string_to_ascii_bytes self.seconds end |