Class: BlackCompany::Event
- Inherits:
-
Object
- Object
- BlackCompany::Event
- Defined in:
- lib/black_company/event.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, data) ⇒ Event
constructor
A new instance of Event.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/black_company/event.rb', line 3 def data @data end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/black_company/event.rb', line 3 def type @type end |