Exception: SpreeDoordash::RequestError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



114
115
116
# File 'app/services/spree_doordash/client.rb', line 114

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



114
115
116
# File 'app/services/spree_doordash/client.rb', line 114

def status
  @status
end