Class: Fanli::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/fanli/event.rb

Overview

The event object

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#resultObject (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