Sha256: 9412e199ef975bbada6a4be4b74e120f031a8d5d85e8e3bb1d0426c51644e633
Contents?: true
Size: 453 Bytes
Versions: 1
Compression:
Stored size: 453 Bytes
Contents
module Typhoeus module Requests # :nodoc: # Module containing logic about shortcuts to # http methods. Like # Typhoeus.get("www.example.com") module Actions [:get, :post, :put, :delete, :head, :patch, :options].each do |name| define_method(name) do |*args| url = args[0] options = args.fetch(1, {}) Request.run(url, options.merge(:method => name)) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typhoeus-0.5.0.pre | lib/typhoeus/requests/actions.rb |