class Beerbelly::Client::Error

Public Instance Methods

to_s() click to toggle source
# File lib/beerbelly/client/error.rb, line 6
def to_s
  case code
  when 400
    'Invalid query'
  when 401
    'Unauthorized'
  when 404
    'Not found'
  when 406
    'Invalid format'
  end
end