lib/loquor/http_actions/get.rb in loquor-1.2.1 vs lib/loquor/http_actions/get.rb in loquor-1.3.0

- old
+ new

@@ -12,11 +12,11 @@ @config.logger.info "GET: #{full_url}" response = @should_cache ? JSON.parse(execute_against_cache) : JSON.parse(execute) @config.logger.info "Response: #{response}" response end - + def execute_against_cache cache = @config.cache if cache val = cache.get(request.url) unless val @@ -24,10 +24,10 @@ cache.set(request.url, val) end val else execute - end + end end private def request RestClient::Request.new(url: full_url, method: :get)