Class: Vail::Command::Pause

Inherits:
Object
  • Object
show all
Defined in:
lib/vail/command/pause.rb

Instance Method Summary collapse

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