Class: Hokusai::Automation::DriverCommands::TriggerMouseHover
- Defined in:
- ui/src/hokusai/automation/driver_commands/trigger_mouse.rb
Instance Attribute Summary
Attributes inherited from Base
#last_parent, #request_id, #state, #status
Instance Method Summary collapse
Methods inherited from Base
#initialize, #matches_block, #matches_blocks, #mouse_center, #mouse_move
Constructor Details
This class inherits a constructor from Hokusai::Automation::DriverCommands::Base
Instance Method Details
#execute(blocks, canvas, input) ⇒ Object
104 105 106 107 108 109 110 |
# File 'ui/src/hokusai/automation/driver_commands/trigger_mouse.rb', line 104 def execute(blocks, canvas, input) if matches_block(blocks[0]) mouse_center(canvas, input) done! end end |
#location ⇒ Object
94 95 96 |
# File 'ui/src/hokusai/automation/driver_commands/trigger_mouse.rb', line 94 def location state[:uuid] end |
#on_complete ⇒ Object
98 99 100 101 102 |
# File 'ui/src/hokusai/automation/driver_commands/trigger_mouse.rb', line 98 def on_complete return true if done? return Automation::Error.new("Could not locate block") end |