Class: WorkOS::Types::ApiResponse

Inherits:
Data
  • Object
show all
Defined in:
lib/workos/types/api_response.rb

Overview

Lightweight wrapper around the raw HTTP response, exposing status, headers, and request-id for observability without leaking Net::HTTP.

Instance Attribute Summary collapse

Instance Attribute Details

#http_headersObject (readonly)

Returns the value of attribute http_headers

Returns:

  • (Object)

    the current value of http_headers



8
9
10
# File 'lib/workos/types/api_response.rb', line 8

def http_headers
  @http_headers
end

#http_statusObject (readonly)

Returns the value of attribute http_status

Returns:

  • (Object)

    the current value of http_status



8
9
10
# File 'lib/workos/types/api_response.rb', line 8

def http_status
  @http_status
end

#request_idObject (readonly)

Returns the value of attribute request_id

Returns:

  • (Object)

    the current value of request_id



8
9
10
# File 'lib/workos/types/api_response.rb', line 8

def request_id
  @request_id
end