lib/youku/v2/request.rb in youku_client-0.0.3 vs lib/youku/v2/request.rb in youku_client-0.0.4
- old
+ new
@@ -9,10 +9,10 @@
# Public: Constructor.
#
# url - The String url.
# params - The Hash query params.
- def initialize(url, params)
+ def initialize(url, params = {})
@url = url
@params = params
@response = Typhoeus::Request.new(url, params: params, connecttimeout: 5, timeout: 10).run
end