Class: Space::Events::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/space/events/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source, event, data = {}) ⇒ Event

Returns a new instance of Event.



6
7
8
9
10
# File 'lib/space/events/event.rb', line 6

def initialize(source, event, data = {})
  @source = source
  @event  = event
  @data   = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



4
5
6
# File 'lib/space/events/event.rb', line 4

def data
  @data
end

#eventObject (readonly)

Returns the value of attribute event.



4
5
6
# File 'lib/space/events/event.rb', line 4

def event
  @event
end

#sourceObject (readonly)

Returns the value of attribute source.



4
5
6
# File 'lib/space/events/event.rb', line 4

def source
  @source
end