Class: Kernai::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/kernai/kernel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, data) ⇒ Event

Returns a new instance of Event.



9
10
11
12
# File 'lib/kernai/kernel.rb', line 9

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

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



7
8
9
# File 'lib/kernai/kernel.rb', line 7

def data
  @data
end

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'lib/kernai/kernel.rb', line 7

def type
  @type
end