Class: Tribe::Event

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject

Returns the value of attribute command.



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

def command
  @command
end

#dataObject

Returns the value of attribute data.



5
6
7
# File 'lib/tribe/event.rb', line 5

def data
  @data
end

#futureObject

Returns the value of attribute future.



7
8
9
# File 'lib/tribe/event.rb', line 7

def future
  @future
end

#sourceObject

Returns the value of attribute source.



6
7
8
# File 'lib/tribe/event.rb', line 6

def source
  @source
end