Module: LittleWeasel::Modules::DictionaryLoaderServicable
- Includes:
- DictionaryCacheValidatable, DictionaryKeyable
- Defined in:
- lib/LittleWeasel/modules/dictionary_loader_servicable.rb
Overview
This module defines methods and attributes to consume the dictionary loader 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.
-
#dictionary_metadata ⇒ Object
Returns the value of attribute dictionary_metadata.
Instance Method Summary collapse
Methods included from DictionaryKeyValidatable
validate, #validate_dictionary_key
Methods included from DictionaryCacheValidatable
validate, #validate_dictionary_cache
Instance Attribute Details
#dictionary_cache ⇒ Object
Returns the value of attribute dictionary_cache.
15 16 17 |
# File 'lib/LittleWeasel/modules/dictionary_loader_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_loader_servicable.rb', line 15 def dictionary_key @dictionary_key end |
#dictionary_metadata ⇒ Object
Returns the value of attribute dictionary_metadata.
15 16 17 |
# File 'lib/LittleWeasel/modules/dictionary_loader_servicable.rb', line 15 def @dictionary_metadata end |
Instance Method Details
#dictionary_loader_service ⇒ Object
17 18 19 20 |
# File 'lib/LittleWeasel/modules/dictionary_loader_servicable.rb', line 17 def dictionary_loader_service Services::DictionaryLoaderService.new(dictionary_key: dictionary_key, dictionary_cache: dictionary_cache, dictionary_metadata: ) end |