class RenuoCmsRails::Cache::Cacher
Public Class Methods
new(api)
click to toggle source
# File lib/renuo_cms_rails/cache/cacher.rb, line 4 def initialize(api) @api = api end
Public Instance Methods
get(content_path)
click to toggle source
# File lib/renuo_cms_rails/cache/cacher.rb, line 12 def get(content_path) return unless @contents @contents[content_path] end
initialize_cache()
click to toggle source
# File lib/renuo_cms_rails/cache/cacher.rb, line 8 def initialize_cache @contents = @api.fetch_contents end