lib/gscraper/sponsored_ad.rb in gscraper-0.2.0 vs lib/gscraper/sponsored_ad.rb in gscraper-0.2.1
- old
+ new
@@ -41,12 +41,10 @@
#
# Returns the direct URL of the ad.
#
def direct_url
- uri = URI(@url)
-
- return (uri.query_params['adurl'] || uri.query_params['q'])
+ URI(@url.query_params['adurl'] || @url.query_params['q'])
end
#
# Returns the title of the ad.
#