Module: LittleWeasel::Modules::DictionaryCreatorServicable
- Includes:
- Filters::WordFiltersValidatable, DictionaryKeyable
- Defined in:
- lib/LittleWeasel/modules/dictionary_creator_servicable.rb
Overview
This module defines methods and attributes to consume the dictionary creator 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.
-
#word_filters ⇒ Object
Returns the value of attribute word_filters.
Instance Method Summary collapse
Methods included from Filters::WordFiltersValidatable
validate, #validate_word_filters
Methods included from Filters::WordFilterValidatable
valid_word_filter?, validate, #validate_word_filter
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_creator_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_creator_servicable.rb', line 15 def dictionary_key @dictionary_key end |
#word_filters ⇒ Object
Returns the value of attribute word_filters.
15 16 17 |
# File 'lib/LittleWeasel/modules/dictionary_creator_servicable.rb', line 15 def word_filters @word_filters end |
Instance Method Details
#dictionary_creator_service ⇒ Object
17 18 19 20 |
# File 'lib/LittleWeasel/modules/dictionary_creator_servicable.rb', line 17 def dictionary_creator_service Services::DictionaryCreatorService.new(dictionary_key: dictionary_key, dictionary_cache: dictionary_cache, dictionary_metadata: , word_filters: word_filters) end |