Sha256: efcc6ff1b7cd3c5b3072062ce62fd616c92a0f563863391ce28b589820525eb7

Contents?: true

Size: 307 Bytes

Versions: 2

Compression:

Stored size: 307 Bytes

Contents

module RenuoCmsRails
  module Cache
    class Cacher
      def initialize(api)
        @api = api
      end

      def initialize_cache
        @contents = @api.fetch_contents
      end

      def get(content_path)
        return unless @contents
        @contents[content_path]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
renuo-cms-rails-0.2.1 lib/renuo_cms_rails/cache/cacher.rb
renuo-cms-rails-0.2.0 lib/renuo_cms_rails/cache/cacher.rb