Class: Autonoma::HandlerRequest

Inherits:
Struct
  • Object
show all
Defined in:
lib/autonoma/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body:, headers: {}) ⇒ HandlerRequest

Returns a new instance of HandlerRequest.



16
17
18
# File 'lib/autonoma/types.rb', line 16

def initialize(body:, headers: {})
  super
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



15
16
17
# File 'lib/autonoma/types.rb', line 15

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



15
16
17
# File 'lib/autonoma/types.rb', line 15

def headers
  @headers
end