Class: Lucid::Shopify::Response::Error Abstract

Inherits:
Error
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/lucid/shopify/response.rb

Overview

This class is abstract.

Instance Method Summary collapse

Instance Method Details

#messageString

Returns:

  • (String)


20
21
22
23
24
25
26
# File 'lib/lucid/shopify/response.rb', line 20

def message
  if response.errors?
    "bad response (#{response.status_code}): #{response.error_messages.first}"
  else
    "bad response (#{response.status_code})"
  end
end

#requestRequest

Returns:



15
# File 'lib/lucid/shopify/response.rb', line 15

param :request

#responseResponse

Returns:



17
# File 'lib/lucid/shopify/response.rb', line 17

param :response