Sha256: eab34bde3e4b928bdc2d9c151861efd752ce969953df9ff277afec42d875ac16
Contents?: true
Size: 388 Bytes
Versions: 6
Compression:
Stored size: 388 Bytes
Contents
module Net class Request module Actions [:get, :post, :put, :delete, :patch, :options, :head].each do |http_method| define_method(http_method) do |base_url, *options, callback| options = options.shift || {} request = Request.new(base_url, options.merge(method: http_method)) request.run(&callback) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems