Exception: DearInventory::RequestError
- Extended by:
- T::Sig
- Defined in:
- lib/dear_inventory/errors/request.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, response = nil) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(message = nil, response = nil) ⇒ RequestError
Returns a new instance of RequestError.
17 18 19 20 21 |
# File 'lib/dear_inventory/errors/request.rb', line 17 def initialize( = nil, response = nil) super() @response = T.let(response, T.nilable(DearInventory::Response)) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/dear_inventory/errors/request.rb', line 9 def response @response end |