Module: WOTC::Client::Locations
- Included in:
- WOTC::Client
- Defined in:
- lib/wotc/client/locations.rb
Overview
Defines methods related to locations
Instance Method Summary collapse
-
#all_locations ⇒ Object
Get all locations.
- #create_location(options = {}) ⇒ Object
- #delete_location(location_id) ⇒ Object
- #update_location(options = {}) ⇒ Object
Instance Method Details
#all_locations ⇒ Object
Get all locations
6 7 8 |
# File 'lib/wotc/client/locations.rb', line 6 def all_locations get("locations") end |
#create_location(options = {}) ⇒ Object
10 11 12 |
# File 'lib/wotc/client/locations.rb', line 10 def create_location(={}) post("locations", ) end |
#delete_location(location_id) ⇒ Object
18 19 20 |
# File 'lib/wotc/client/locations.rb', line 18 def delete_location(location_id) delete("locations/#{location_id}") end |
#update_location(options = {}) ⇒ Object
14 15 16 |
# File 'lib/wotc/client/locations.rb', line 14 def update_location(={}) put("locations", ) end |