Class: Space::Events::Event
- Inherits:
-
Object
- Object
- Space::Events::Event
- Defined in:
- lib/space/events/event.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, event, data = {}) ⇒ Event
constructor
A new instance of Event.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/space/events/event.rb', line 4 def data @data end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
4 5 6 |
# File 'lib/space/events/event.rb', line 4 def event @event end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
4 5 6 |
# File 'lib/space/events/event.rb', line 4 def source @source end |