lib/typhoeus/request/actions.rb in typhoeus-1.3.0 vs lib/typhoeus/request/actions.rb in typhoeus-1.3.1
- old
+ new
@@ -13,11 +13,11 @@
#
# @param (see Typhoeus::Request#initialize)
#
# @option (see Typhoeus::Request#initialize)
#
- # @return (see Typhoeus::Request#initialize)
+ # @return (see Typhoeus::Response#initialize)
#
# @note (see Typhoeus::Request#initialize)
def get(base_url, options = {})
Request.new(base_url, options.merge(:method => :get)).run
end
@@ -29,11 +29,11 @@
#
# @param (see Typhoeus::Request#initialize)
#
# @option (see Typhoeus::Request#initialize)
#
- # @return (see Typhoeus::Request#initialize)
+ # @return (see Typhoeus::Response#initialize)
#
# @note (see Typhoeus::Request#initialize)
def post(base_url, options = {})
Request.new(base_url, options.merge(:method => :post)).run
end
@@ -48,11 +48,11 @@
# @option options :params [ Hash ] Params hash which
# is attached to the base_url.
# @option options :body [ Hash ] Body hash which
# becomes a PUT request body.
#
- # @return (see Typhoeus::Request#initialize)
+ # @return (see Typhoeus::Response#initialize)
#
# @note (see Typhoeus::Request#initialize)
def put(base_url, options = {})
Request.new(base_url, options.merge(:method => :put)).run
end
@@ -64,11 +64,11 @@
#
# @param (see Typhoeus::Request#initialize)
#
# @option (see Typhoeus::Request#initialize)
#
- # @return (see Typhoeus::Request#initialize)
+ # @return (see Typhoeus::Response#initialize)
#
# @note (see Typhoeus::Request#initialize)
def delete(base_url, options = {})
Request.new(base_url, options.merge(:method => :delete)).run
end
@@ -80,11 +80,11 @@
#
# @param (see Typhoeus::Request#initialize)
#
# @option (see Typhoeus::Request#initialize)
#
- # @return (see Typhoeus::Request#initialize)
+ # @return (see Typhoeus::Response#initialize)
#
# @note (see Typhoeus::Request#initialize)
def head(base_url, options = {})
Request.new(base_url, options.merge(:method => :head)).run
end
@@ -96,11 +96,11 @@
#
# @param (see Typhoeus::Request#initialize)
#
# @option (see Typhoeus::Request#initialize)
#
- # @return (see Typhoeus::Request#initialize)
+ # @return (see Typhoeus::Response#initialize)
#
# @note (see Typhoeus::Request#initialize)
def patch(base_url, options = {})
Request.new(base_url, options.merge(:method => :patch)).run
end
@@ -112,10 +112,10 @@
#
# @param (see Typhoeus::Request#initialize)
#
# @option (see Typhoeus::Request#initialize)
#
- # @return (see Typhoeus::Request#initialize)
+ # @return (see Typhoeus::Response#initialize)
#
# @note (see Typhoeus::Request#initialize)
def options(base_url, options = {})
Request.new(base_url, options.merge(:method => :options)).run
end