Exception: SpreeDoordash::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- SpreeDoordash::RequestError
- Defined in:
- app/services/spree_doordash/client.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status:, body:) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(message, status:, body:) ⇒ RequestError
Returns a new instance of RequestError.
116 117 118 119 120 |
# File 'app/services/spree_doordash/client.rb', line 116 def initialize(, status:, body:) super() @status = status @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
114 115 116 |
# File 'app/services/spree_doordash/client.rb', line 114 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
114 115 116 |
# File 'app/services/spree_doordash/client.rb', line 114 def status @status end |