Skip to content
Browse files

Add documentation for the query parameter.

  • Loading branch information...
1 parent 382e7d0 commit fae6ec7a73444b0ea77d507260ea3f233bc89153 @tristandunn tristandunn committed
Showing with 2 additions and 0 deletions.
  1. +1 −0 lib/bartender/beer.rb
  2. +1 −0 lib/bartender/brewery.rb
View
1 lib/bartender/beer.rb
@@ -7,6 +7,7 @@ class Beer
# @option options [String] :order The order to sort by (defaults to +id ASC+).
# @option options [String] :page The page number to request (defautls to +1+).
# @option options [String] :per_page The number of beers to return per page (defaults to +50+).
+ # @option options [String] :query A string to search beer names with. (optional)
# @option options [String] :token A public token to override the current configuration with (optional).
def self.all(options = {})
Bartender::Request.get("/beers", options)
View
1 lib/bartender/brewery.rb
@@ -7,6 +7,7 @@ class Brewery
# @option options [String] :order The order to sort by (defaults to +id ASC+).
# @option options [String] :page The page number to request (defautls to +1+).
# @option options [String] :per_page The number of breweries to return per page (defaults to +50+).
+ # @option options [String] :query A string to search brewery names with. (optional)
# @option options [String] :token A public token to override the current configuration with (optional).
def self.all(options = {})
Bartender::Request.get("/breweries", options)

0 comments on commit fae6ec7

Please sign in to comment.
Something went wrong with that request. Please try again.