lib/bearcat/client/outcomes.rb in bearcat-1.4.13 vs lib/bearcat/client/outcomes.rb in bearcat-1.5.0.beta1
- old
+ new
@@ -1,15 +1,12 @@
module Bearcat
class Client < Footrest::Client
module Outcomes
+ extend ClientModule
- def show_outcome(id)
- get("/api/v1/outcomes/#{id}")
+ prefix "/api/v1/outcomes/:outcome/" do
+ get :show_outcome
+ put :update_outcome
end
-
- def update_outcome(id, params={})
- put("/api/v1/outcomes/#{id}", params)
- end
-
end
end
end
\ No newline at end of file