Exception: SpreeUberDirect::RequestError

Inherits:
StandardError
  • Object
show all
Defined in:
app/services/spree_uber_direct/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, status:, body:)
  super(message)
  @status = status
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



147
148
149
# File 'app/services/spree_uber_direct/client.rb', line 147

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



147
148
149
# File 'app/services/spree_uber_direct/client.rb', line 147

def status
  @status
end