Class: Tankard::Client
- Inherits:
-
Object
- Object
- Tankard::Client
- Defined in:
- lib/tankard/client.rb
Overview
Interaction point for various endpoints When querying Tankard normally there is only one of these alive at a time
Instance Method Summary collapse
- #beer(options = {}) ⇒ Object
- #beers(options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
- #search(options = {}) ⇒ Object
- #style(options = {}) ⇒ Object
- #styles ⇒ Object
Constructor Details
Instance Method Details
#beer(options = {}) ⇒ Object
23 24 25 |
# File 'lib/tankard/client.rb', line 23 def beer( = {}) Tankard::Api::Beer.new(@tankard_request, ) end |
#beers(options = {}) ⇒ Object
27 28 29 |
# File 'lib/tankard/client.rb', line 27 def beers( = {}) Tankard::Api::Beers.new(@tankard_request, ) end |
#search(options = {}) ⇒ Object
31 32 33 |
# File 'lib/tankard/client.rb', line 31 def search( = {}) Tankard::Api::Search.new(@tankard_request, ) end |