Module: LittleWeasel::Modules::DictionaryCacheServicable

Overview

This module defines methods and attributes to consume the dictionary cache service.

Instance Attribute Summary collapse

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_cacheObject

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_keyObject

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_serviceObject



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