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

Instance Method Details

#all_locationsObject

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(options={})
  post("locations", options)
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(options={})
  put("locations", options)
end