Class: Low::Events::RequestEvent
- Inherits:
-
Low::Event
- Object
- Low::Event
- Low::Events::RequestEvent
- Defined in:
- lib/events/request_event.rb
Constant Summary
Constants inherited from Low::Event
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Attributes inherited from Low::Event
#action, #children, #created_at, #key
Instance Method Summary collapse
-
#initialize(request:, action: :handle) ⇒ RequestEvent
constructor
A new instance of RequestEvent.
Methods inherited from Low::Event
inherited, #take, take, #trigger, trigger
Methods included from Support::ValueObject
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
#request ⇒ Object (readonly)
Returns the value of attribute request.
8 9 10 |
# File 'lib/events/request_event.rb', line 8 def request @request end |