Exception: ShopifyAPI::Errors::HttpResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- ShopifyAPI::Errors::HttpResponseError
- Extended by:
- T::Sig
- Defined in:
- lib/shopify_api/errors/http_response_error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response:) ⇒ HttpResponseError
constructor
A new instance of HttpResponseError.
Constructor Details
#initialize(response:) ⇒ HttpResponseError
Returns a new instance of HttpResponseError.
16 17 18 19 20 |
# File 'lib/shopify_api/errors/http_response_error.rb', line 16 def initialize(response:) super @code = T.let(response.code, Integer) @response = response end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/shopify_api/errors/http_response_error.rb', line 10 def code @code end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
13 14 15 |
# File 'lib/shopify_api/errors/http_response_error.rb', line 13 def response @response end |