Exception: SpreeUberDirect::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- SpreeUberDirect::RequestError
- Defined in:
- app/services/spree_uber_direct/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.
149 150 151 152 153 |
# File 'app/services/spree_uber_direct/client.rb', line 149 def initialize(, status:, body:) super() @status = status @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
147 148 149 |
# File 'app/services/spree_uber_direct/client.rb', line 147 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
147 148 149 |
# File 'app/services/spree_uber_direct/client.rb', line 147 def status @status end |