Class: Tribe::Event
- Inherits:
-
Object
- Object
- Tribe::Event
- Defined in:
- lib/tribe/event.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#data ⇒ Object
Returns the value of attribute data.
-
#future ⇒ Object
Returns the value of attribute future.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(command, data, source = nil) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(command, data, source = nil) ⇒ Event
Returns a new instance of Event.
9 10 11 12 13 |
# File 'lib/tribe/event.rb', line 9 def initialize(command, data, source = nil) @command = command @data = data @source = source end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
4 5 6 |
# File 'lib/tribe/event.rb', line 4 def command @command end |
#data ⇒ Object
Returns the value of attribute data.
5 6 7 |
# File 'lib/tribe/event.rb', line 5 def data @data end |
#future ⇒ Object
Returns the value of attribute future.
7 8 9 |
# File 'lib/tribe/event.rb', line 7 def future @future end |
#source ⇒ Object
Returns the value of attribute source.
6 7 8 |
# File 'lib/tribe/event.rb', line 6 def source @source end |