Class: Low::Events::RequestEvent

Inherits:
Low::Event show all
Defined in:
lib/events/request_event.rb

Constant Summary

Constants inherited from Low::Event

Low::Event::ROOT_FIBER

Instance Attribute Summary collapse

Attributes inherited from Low::Event

#action, #children, #created_at, #key

Instance Method Summary collapse

Methods inherited from Low::Event

inherited, #take, take, #trigger, trigger

Methods included from Support::ValueObject

#==, #eql?, #hash

Constructor Details

#initialize(request:, action: :handle) ⇒ RequestEvent

Returns a new instance of RequestEvent.



10
11
12
13
14
# File 'lib/events/request_event.rb', line 10

def initialize(request:, action: :handle)
  super(key: self.class, action:)

  @request = request
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



8
9
10
# File 'lib/events/request_event.rb', line 8

def request
  @request
end