Module: LittleWeasel::Modules::DictionaryCacheServicable
- Includes:
- DictionaryCacheValidatable, DictionaryKeyable
- Included in:
- Dictionary, LittleWeasel::Metadata::DictionaryMetadata, LittleWeasel::Metadata::InvalidWordsMetadata, Services::DictionaryCreatorService, Services::DictionaryFileLoaderService, Services::DictionaryKillerService, Services::DictionaryMetadataService
- Defined in:
- lib/LittleWeasel/modules/dictionary_cache_servicable.rb
Overview
This module defines methods and attributes to consume the dictionary cache service.
Instance Attribute Summary collapse
-
#dictionary_cache ⇒ Object
Returns the value of attribute dictionary_cache.
-
#dictionary_key ⇒ Object
Returns the value of attribute dictionary_key.
Instance Method Summary collapse
Methods included from DictionaryCacheValidatable
#validate_dictionary_cache, validate_dictionary_cache
Methods included from DictionaryKeyValidatable
#validate_dictionary_key, validate_dictionary_key
Instance Attribute Details
#dictionary_cache ⇒ Object
Returns the value of attribute dictionary_cache.
15 16 17 |
# File 'lib/LittleWeasel/modules/dictionary_cache_servicable.rb', line 15 def dictionary_cache @dictionary_cache end |
#dictionary_key ⇒ Object
Returns the value of attribute dictionary_key.
15 16 17 |
# File 'lib/LittleWeasel/modules/dictionary_cache_servicable.rb', line 15 def dictionary_key @dictionary_key end |
Instance Method Details
#dictionary_cache_service ⇒ Object
17 18 19 |
# File 'lib/LittleWeasel/modules/dictionary_cache_servicable.rb', line 17 def dictionary_cache_service Services::DictionaryCacheService.new(dictionary_key: dictionary_key, dictionary_cache: dictionary_cache) end |