Class: Mac::EventMonitor::MouseEvent
- Defined in:
- lib/mac-event-monitor/event/mouse_event.rb
Instance Attribute Summary collapse
-
#button ⇒ Object
readonly
Returns the value of attribute button.
Attributes inherited from Event
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(type, time, location, button) ⇒ MouseEvent
constructor
A new instance of MouseEvent.
Methods inherited from Event
create_from_description, parse_location
Methods included from JsonSerializable
Constructor Details
#initialize(type, time, location, button) ⇒ MouseEvent
Returns a new instance of MouseEvent.
6 7 8 9 10 |
# File 'lib/mac-event-monitor/event/mouse_event.rb', line 6 def initialize(type, time, location, ) super(type, time, location) @button = && .to_sym end |
Instance Attribute Details
#button ⇒ Object (readonly)
Returns the value of attribute button.
4 5 6 |
# File 'lib/mac-event-monitor/event/mouse_event.rb', line 4 def @button end |
Instance Method Details
#data ⇒ Object
12 13 14 |
# File 'lib/mac-event-monitor/event/mouse_event.rb', line 12 def data super + [] end |