Class: Low::Events::StatusEvent

Inherits:
Low::Event show all
Defined in:
lib/events/status_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(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

#requestObject (readonly)

Returns the value of attribute request.



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

def request
  @request
end

#statusObject (readonly)

Returns the value of attribute status.



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

def status
  @status
end