lib/frenetic/configuration.rb in frenetic-0.0.20.alpha.1 vs lib/frenetic/configuration.rb in frenetic-0.0.20.alpha.2

- old
+ new

@@ -26,10 +26,11 @@ def attributes { adapter: adapter, api_token: api_token, cache: cache, + default_root_cache_age: default_root_cache_age, headers: headers, password: password, url: url, username: username } @@ -43,9 +44,13 @@ ignore_headers: %w{Authorization Set-Cookie X-Content-Digest} } else {} end + end + + def default_root_cache_age + @_cfg[:default_root_cache_age] end def headers @@defaults[:headers].merge( @_cfg[:headers] || {} ) end \ No newline at end of file