Class: Retab::Types::ApiResponse
- Inherits:
-
Object
- Object
- Retab::Types::ApiResponse
- Defined in:
- lib/retab/types/api_response.rb
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 Method Summary collapse
-
#initialize(http_status:, http_headers: {}, request_id: nil) ⇒ ApiResponse
constructor
A new instance of ApiResponse.
Constructor Details
#initialize(http_status:, http_headers: {}, request_id: nil) ⇒ ApiResponse
Returns a new instance of ApiResponse.
13 14 15 16 17 |
# File 'lib/retab/types/api_response.rb', line 13 def initialize(http_status:, http_headers: {}, request_id: nil) @http_status = http_status @http_headers = http_headers @request_id = request_id end |
Instance Attribute Details
#http_headers ⇒ Object (readonly)
Returns the value of attribute http_headers.
11 12 13 |
# File 'lib/retab/types/api_response.rb', line 11 def http_headers @http_headers end |
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
11 12 13 |
# File 'lib/retab/types/api_response.rb', line 11 def http_status @http_status end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
11 12 13 |
# File 'lib/retab/types/api_response.rb', line 11 def request_id @request_id end |