Class: Vail::Command::Pause
- Inherits:
-
Object
- Object
- Vail::Command::Pause
- Defined in:
- lib/vail/command/pause.rb
Instance Method Summary collapse
- #execute(config) ⇒ Object
-
#initialize(type) ⇒ Pause
constructor
A new instance of Pause.
Constructor Details
#initialize(type) ⇒ Pause
Returns a new instance of Pause.
4 5 6 |
# File 'lib/vail/command/pause.rb', line 4 def initialize(type) @type = type end |
Instance Method Details
#execute(config) ⇒ Object
7 8 9 |
# File 'lib/vail/command/pause.rb', line 7 def execute(config) sleep(config[@type]["pause"].to_f/1000.0) end |