Class: Legion::LLM::API::RoutingErrorMapper::Response

Inherits:
Data
  • Object
show all
Defined in:
lib/legion/llm/api/routing_error_mapper.rb

Overview

Immutable HTTP response value object (::Data.define; instances are frozen automatically in Ruby 3.2+).

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



30
31
32
# File 'lib/legion/llm/api/routing_error_mapper.rb', line 30

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



30
31
32
# File 'lib/legion/llm/api/routing_error_mapper.rb', line 30

def headers
  @headers
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



30
31
32
# File 'lib/legion/llm/api/routing_error_mapper.rb', line 30

def status
  @status
end