lib/routemaster/resources/rest_resource.rb in routemaster-drain-2.0.0 vs lib/routemaster/resources/rest_resource.rb in routemaster-drain-2.2.2

- old
+ new

@@ -19,8 +19,16 @@ end def index @client.get(@url) end + + def update(id=nil, params) + @client.patch(@url.gsub('{id}', id.to_s), body: params) + end + + def destroy(id=nil) + @client.delete(@url.gsub('{id}', id.to_s)) + end end end end