lib/brewery_db.rb
require 'brewery_db/version'
module BreweryDB
Error = Class.new(StandardError)
BadRequest = Class.new(Error)
NotFound = Class.new(Error)
RateLimitExceeded = Class.new(Error)
Unauthorized = Class.new(Error)
autoload :Client, 'brewery_db/client'
autoload :Collection, 'brewery_db/collection'
autoload :Config, 'brewery_db/config'
autoload :Mash, 'brewery_db/mash'
autoload :PaginatedCollection, 'brewery_db/paginated_collection'
autoload :Request, 'brewery_db/request'
autoload :Resource, 'brewery_db/resource'
autoload :Response, 'brewery_db/response'
autoload :WebHook, 'brewery_db/web_hook'
module Middleware
autoload :ErrorHandler, 'brewery_db/middleware/error_handler'
end
module Resources
autoload :Beers, 'brewery_db/resources/beers'
autoload :Breweries, 'brewery_db/resources/breweries'
autoload :Brewery, 'brewery_db/resources/brewery'
autoload :Categories, 'brewery_db/resources/categories'
autoload :Fermentables, 'brewery_db/resources/fermentables'
autoload :FluidSize, 'brewery_db/resources/fluid_size'
autoload :Glassware, 'brewery_db/resources/glassware'
autoload :Hops, 'brewery_db/resources/hops'
autoload :Locations, 'brewery_db/resources/locations'
autoload :Menu, 'brewery_db/resources/menu'
autoload :Search, 'brewery_db/resources/search'
autoload :Styles, 'brewery_db/resources/styles'
autoload :Yeasts, 'brewery_db/resources/yeasts'
end
end