Class: WorkOS::Types::ApiResponse
- Inherits:
-
Data
- Object
- Data
- WorkOS::Types::ApiResponse
- 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
-
#http_headers ⇒ Object
readonly
Returns the value of attribute http_headers.
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
Instance Attribute Details
#http_headers ⇒ Object (readonly)
Returns the value of attribute http_headers
8 9 10 |
# File 'lib/workos/types/api_response.rb', line 8 def http_headers @http_headers end |
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status
8 9 10 |
# File 'lib/workos/types/api_response.rb', line 8 def http_status @http_status end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id
8 9 10 |
# File 'lib/workos/types/api_response.rb', line 8 def request_id @request_id end |