lib/onering/api.rb in onering-client-0.0.56 vs lib/onering/api.rb in onering-client-0.0.57
- old
+ new
@@ -107,10 +107,10 @@
else
request(:post, endpoint, options)
end
end
- def put(endpoint, options={})
+ def put(endpoint, options={}, &block)
if block_given?
request(:put, endpoint, options.merge({
:body => yield
}))
else
\ No newline at end of file