lib/loquor/client.rb in loquor-1.4.0 vs lib/loquor/client.rb in loquor-1.5.0

- old
+ new

@@ -4,12 +4,12 @@ def initialize @config = Configuration.new end - def get(url, cache=nil) + def get(url, options = {}) deps = {config: @config} - deps[:should_cache] = cache if cache + deps[:should_cache] = options[:cache] if options[:cache] HttpAction::Get.get(url, deps) end def put(url, payload) deps = {config: @config}