Module: BWAPI::Client::Locations
- Included in:
- BWAPI::Client
- Defined in:
- lib/bwapi/client/locations.rb
Overview
Location module for locations endpoints
Instance Method Summary collapse
-
#location(location_code) ⇒ Hashie::Mash
Request the information for a given location code.
-
#locations(opts = {}) ⇒ Hashie::Mash
Locations a location name with candidates.
Instance Method Details
#location(location_code) ⇒ Hashie::Mash
Request the information for a given location code
10 11 12 |
# File 'lib/bwapi/client/locations.rb', line 10 def location(location_code) get "locations/#{location_code}" end |
#locations(opts = {}) ⇒ Hashie::Mash
Locations a location name with candidates
21 22 23 |
# File 'lib/bwapi/client/locations.rb', line 21 def locations(opts = {}) get 'locations', opts end |