Class: Golem::Model::Event
- Inherits:
-
Object
- Object
- Golem::Model::Event
- Defined in:
- lib/golem/model/event.rb
Instance Attribute Summary collapse
-
#callbacks ⇒ Object
readonly
Returns the value of attribute callbacks.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(name) ⇒ Event
Returns a new instance of Event.
7 8 9 |
# File 'lib/golem/model/event.rb', line 7 def initialize(name) @name = name end |
Instance Attribute Details
#callbacks ⇒ Object (readonly)
Returns the value of attribute callbacks.
5 6 7 |
# File 'lib/golem/model/event.rb', line 5 def callbacks @callbacks end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/golem/model/event.rb', line 4 def name @name end |