Class: Ray::DSL::Event

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

Overview

Used internally to store event when raise_event is called.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, args) ⇒ Event

Returns a new instance of Event.



5
6
7
8
# File 'lib/ray/dsl/event.rb', line 5

def initialize(type, args)
  @type = type
  @args = args
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



11
12
13
# File 'lib/ray/dsl/event.rb', line 11

def args
  @args
end

#typeObject (readonly)

Returns the value of attribute type.



10
11
12
# File 'lib/ray/dsl/event.rb', line 10

def type
  @type
end