Class: Retab::Types::ApiResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_headersObject (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_statusObject (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_idObject (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