Class: Fanli::Event
- Inherits:
-
Object
- Object
- Fanli::Event
- Defined in:
- lib/fanli/event.rb
Overview
The event object
Instance Method Summary collapse
- #args(index) ⇒ Object
-
#initialize(args:, result:) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(args:, result:) ⇒ Event
Returns a new instance of Event.
4 5 6 7 |
# File 'lib/fanli/event.rb', line 4 def initialize(args:, result:) @args = args @result = result end |
Instance Method Details
#args(index) ⇒ Object
9 10 11 |
# File 'lib/fanli/event.rb', line 9 def args(index) @args[index] end |