Class: Low::Events::StatusEvent
- Inherits:
-
Low::Event
- Object
- Low::Event
- Low::Events::StatusEvent
- Defined in:
- lib/events/status_event.rb
Constant Summary
Constants inherited from Low::Event
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Attributes inherited from Low::Event
#action, #children, #created_at, #key
Instance Method Summary collapse
-
#initialize(status:, request:, action: :render) ⇒ StatusEvent
constructor
A new instance of StatusEvent.
Methods inherited from Low::Event
inherited, #take, take, #trigger, trigger
Methods included from Support::ValueObject
Constructor Details
#initialize(status:, request:, action: :render) ⇒ StatusEvent
Returns a new instance of StatusEvent.
10 11 12 13 14 15 |
# File 'lib/events/status_event.rb', line 10 def initialize(status:, request:, action: :render) super(key: status, action:) @status = status @request = request end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
8 9 10 |
# File 'lib/events/status_event.rb', line 8 def request @request end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/events/status_event.rb', line 8 def status @status end |