Class: Fanli::Event
- Inherits:
-
Object
- Object
- Fanli::Event
- Defined in:
- lib/fanli/event.rb
Overview
The event object
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
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.
6 7 8 9 |
# File 'lib/fanli/event.rb', line 6 def initialize(args:, result:) @args = args @result = result end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
4 5 6 |
# File 'lib/fanli/event.rb', line 4 def result @result end |
Instance Method Details
#args(index) ⇒ Object
11 12 13 |
# File 'lib/fanli/event.rb', line 11 def args(index) @args[index] end |