Class: Rubot::Event
- Inherits:
-
Object
- Object
- Rubot::Event
- Defined in:
- lib/rubot/classes/event.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#execute ⇒ Object
readonly
Returns the value of attribute execute.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(execute, attributes = {}, name:) ⇒ Event
constructor
A new instance of Event.
- #run ⇒ Object
Constructor Details
#initialize(execute, attributes = {}, name:) ⇒ Event
Returns a new instance of Event.
9 10 11 12 13 |
# File 'lib/rubot/classes/event.rb', line 9 def initialize(execute, attributes = {}, name:) @name = name @attributes = attributes @execute = execute end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
7 8 9 |
# File 'lib/rubot/classes/event.rb', line 7 def attributes @attributes end |
#execute ⇒ Object (readonly)
Returns the value of attribute execute.
7 8 9 |
# File 'lib/rubot/classes/event.rb', line 7 def execute @execute end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/rubot/classes/event.rb', line 7 def name @name end |