Exception: Shipstation::ApiRequestError

Inherits:
ShipstationError show all
Defined in:
lib/shipstation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response_code:, response_headers:, response_body:) ⇒ ApiRequestError

Returns a new instance of ApiRequestError.



37
38
39
40
41
# File 'lib/shipstation.rb', line 37

def initialize(response_code:, response_headers:, response_body:)
  @response_code = response_code
  @response_headers = response_headers
  @response_body = response_body
end

Instance Attribute Details

#response_bodyObject (readonly)

Returns the value of attribute response_body.



35
36
37
# File 'lib/shipstation.rb', line 35

def response_body
  @response_body
end

#response_codeObject (readonly)

Returns the value of attribute response_code.



35
36
37
# File 'lib/shipstation.rb', line 35

def response_code
  @response_code
end

#response_headersObject (readonly)

Returns the value of attribute response_headers.



35
36
37
# File 'lib/shipstation.rb', line 35

def response_headers
  @response_headers
end