Class: Rubygoo::GooEvent
- Inherits:
-
Object
- Object
- Rubygoo::GooEvent
- Defined in:
- lib/rubygoo/goo_event.rb
Overview
all events in the system are converted to these for internal use by our adapter
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#event_type ⇒ Object
Returns the value of attribute event_type.
-
#handled ⇒ Object
Returns the value of attribute handled.
Instance Method Summary collapse
- #handled? ⇒ Boolean
-
#initialize(event_type, event_data = nil) ⇒ GooEvent
constructor
A new instance of GooEvent.
Constructor Details
#initialize(event_type, event_data = nil) ⇒ GooEvent
Returns a new instance of GooEvent.
7 8 9 10 |
# File 'lib/rubygoo/goo_event.rb', line 7 def initialize(event_type, event_data = nil) @event_type = event_type @data = event_data end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
5 6 7 |
# File 'lib/rubygoo/goo_event.rb', line 5 def data @data end |
#event_type ⇒ Object
Returns the value of attribute event_type.
5 6 7 |
# File 'lib/rubygoo/goo_event.rb', line 5 def event_type @event_type end |
#handled ⇒ Object
Returns the value of attribute handled.
5 6 7 |
# File 'lib/rubygoo/goo_event.rb', line 5 def handled @handled end |
Instance Method Details
#handled? ⇒ Boolean
12 13 14 |
# File 'lib/rubygoo/goo_event.rb', line 12 def handled?() @handled end |