class ShopifyClient::Error::ClientError
Public Class Methods
from_response(response)
click to toggle source
# File lib/shopify_client/error/client_error.rb, line 8 def self.from_response(response) new parse_error(response[:body]), response[:status] end
parse_error(body)
click to toggle source
# File lib/shopify_client/error/client_error.rb, line 12 def self.parse_error(body) if body.nil? '' else body[:error] end end