Class: Rubygoo::GooEvent

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#dataObject

Returns the value of attribute data.



5
6
7
# File 'lib/rubygoo/goo_event.rb', line 5

def data
  @data
end

#event_typeObject

Returns the value of attribute event_type.



5
6
7
# File 'lib/rubygoo/goo_event.rb', line 5

def event_type
  @event_type
end

#handledObject

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

Returns:

  • (Boolean)


12
13
14
# File 'lib/rubygoo/goo_event.rb', line 12

def handled?()
  @handled
end