module Artisan::Query::Validation
Public Class Methods
validate_response(code)
click to toggle source
# File lib/artisan/query.rb, line 87 def self.validate_response code if code == 401 raise 'API key not found in database' elsif !code == 200 raise 'Something went wrong with the HTTP call!' end end