lib/brandspotter/client/jobs.rb in brandspotter-1.0.0 vs lib/brandspotter/client/jobs.rb in brandspotter-1.0.1

- old
+ new

@@ -15,7 +15,24 @@ end def destroy_subscription(id) delete_request "/subscriptions/#{id}" end + + def locations + get_request configure_payload('/locations') + end + + def find_location(id) + get_request configure_payload("/locations/#{id}") + end + + def create_location(opts={}) + opts.assert_valid_keys(:location) + post_request '/locations', opts + end + + def destroy_location(id) + delete_request "/locations/#{id}" + end end end