Sha256: 071199f34799abcd06a0ce363065e28d101e4cefa1232da96c6b85357eb78765

Contents?: true

Size: 922 Bytes

Versions: 15

Compression:

Stored size: 922 Bytes

Contents

# frozen_string_literal: true

require_relative '../dictionary_key'
require_relative '../services/dictionary_metadata_service'
require_relative 'dictionary_cache_validatable'
require_relative 'dictionary_metadata_validatable'

module LittleWeasel
  module Modules
    # This module defines methods and attributes to consume the dictionary
    # metadata service.
    module DictionaryMetadataServicable
      include DictionaryKeyable
      include DictionaryCacheValidatable
      include DictionaryMetadataValidatable

      attr_reader :dictionary_cache, :dictionary_key, :dictionary_metadata

      def dictionary_metadata_service
        Services::DictionaryMetadataService.new(dictionary_key: dictionary_key, dictionary_cache: dictionary_cache,
          dictionary_metadata: dictionary_metadata)
      end

      private

      attr_writer :dictionary_cache, :dictionary_key, :dictionary_metadata
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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