Sha256: 690ee0f1c1b22de2a54e17d7bc02eb54b0c8146cc891990f4c8efed05c8b2ea4

Contents?: true

Size: 716 Bytes

Versions: 15

Compression:

Stored size: 716 Bytes

Contents

# frozen_string_literal: true

require_relative '../dictionary_key'
require_relative '../services/dictionary_cache_service'
require_relative 'dictionary_cache_validatable'

module LittleWeasel
  module Modules
    # This module defines methods and attributes to consume the dictionary
    # cache service.
    module DictionaryCacheServicable
      include DictionaryKeyable
      include DictionaryCacheValidatable

      attr_reader :dictionary_cache, :dictionary_key

      def dictionary_cache_service
        Services::DictionaryCacheService.new(dictionary_key: dictionary_key, dictionary_cache: dictionary_cache)
      end

      private

      attr_writer :dictionary_cache, :dictionary_key
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
LittleWeasel-5.0.13 lib/LittleWeasel/modules/dictionary_cache_servicable.rb
LittleWeasel-5.0.12 lib/LittleWeasel/modules/dictionary_cache_servicable.rb
LittleWeasel-5.0.11 lib/LittleWeasel/modules/dictionary_cache_servicable.rb
LittleWeasel-5.0.10 lib/LittleWeasel/modules/dictionary_cache_servicable.rb
LittleWeasel-5.0.9 lib/LittleWeasel/modules/dictionary_cache_servicable.rb
LittleWeasel-5.0.8 lib/LittleWeasel/modules/dictionary_cache_servicable.rb
LittleWeasel-5.0.7 lib/LittleWeasel/modules/dictionary_cache_servicable.rb
LittleWeasel-5.0.6 lib/LittleWeasel/modules/dictionary_cache_servicable.rb
LittleWeasel-5.0.5 lib/LittleWeasel/modules/dictionary_cache_servicable.rb
LittleWeasel-5.0.4 lib/LittleWeasel/modules/dictionary_cache_servicable.rb
LittleWeasel-5.0.3 lib/LittleWeasel/modules/dictionary_cache_servicable.rb
LittleWeasel-5.0.2 lib/LittleWeasel/modules/dictionary_cache_servicable.rb
LittleWeasel-5.0.1 lib/LittleWeasel/modules/dictionary_cache_servicable.rb
LittleWeasel-5.0.0 lib/LittleWeasel/modules/dictionary_cache_servicable.rb
LittleWeasel-4.0.0 lib/LittleWeasel/modules/dictionary_cache_servicable.rb