Class: BlackCompany::Event

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, data) ⇒ Event

Returns a new instance of Event.



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

def initialize(type, data)
  @type = type
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



3
4
5
# File 'lib/black_company/event.rb', line 3

def data
  @data
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/black_company/event.rb', line 3

def type
  @type
end