Class: Low::Events::ResponseEvent

Inherits:
Low::Event show all
Defined in:
lib/events/response_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(response: nil) ⇒ ResponseEvent

TODO: Type: “response: Protocol::HTTP::Response”



12
13
14
# File 'lib/events/response_event.rb', line 12

def initialize(response: nil)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



9
10
11
# File 'lib/events/response_event.rb', line 9

def response
  @response
end