Class: Hokusai::Automation::DriverCommands::TriggerMouseBase
- Includes:
- MouseMethods
- Defined in:
- ui/src/hokusai/automation/driver_commands/trigger_mouse.rb
Direct Known Subclasses
TriggerMouseClick, TriggerMouseDown, TriggerMouseRelease, TriggerMouseUp
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Base
#last_parent, #request_id, #state, #status
Instance Method Summary collapse
- #button ⇒ Object
-
#initialize(hash) ⇒ TriggerMouseBase
constructor
A new instance of TriggerMouseBase.
- #location ⇒ Object
- #on_complete ⇒ Object
Methods included from MouseMethods
Methods inherited from Base
#execute, #matches_block, #matches_blocks, #mouse_center, #mouse_move
Constructor Details
#initialize(hash) ⇒ TriggerMouseBase
Returns a new instance of TriggerMouseBase.
16 17 18 19 20 |
# File 'ui/src/hokusai/automation/driver_commands/trigger_mouse.rb', line 16 def initialize(hash) @value = false super end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
14 15 16 |
# File 'ui/src/hokusai/automation/driver_commands/trigger_mouse.rb', line 14 def value @value end |
Instance Method Details
#button ⇒ Object
26 27 28 |
# File 'ui/src/hokusai/automation/driver_commands/trigger_mouse.rb', line 26 def state[:button] end |
#location ⇒ Object
22 23 24 |
# File 'ui/src/hokusai/automation/driver_commands/trigger_mouse.rb', line 22 def location state[:uuid] end |
#on_complete ⇒ Object
30 31 32 33 34 |
# File 'ui/src/hokusai/automation/driver_commands/trigger_mouse.rb', line 30 def on_complete return value if done? return Automation::Error.new("Could not locate block") end |