Module: RedisModelExtension::ClassConfig
- Defined in:
- lib/redis-model-extension/config.rb
Overview
Config
set private methods for accessing & storing class configurations
Instance Method Summary collapse
-
#redis_alias_config ⇒ Object
store informations about current class aliases settings.
-
#redis_fields_config ⇒ Object
store informations about current class fields settings.
-
#redis_fields_defaults_config ⇒ Object
store informations about current class fields defaults settings.
-
#redis_key_config ⇒ Object
store informations about current class redis key fields.
-
#redis_save_fields_with_nil_conf ⇒ Object
store informations about saving nil values.
Instance Method Details
#redis_alias_config ⇒ Object
store informations about current class aliases settings
28 29 30 |
# File 'lib/redis-model-extension/config.rb', line 28 def redis_alias_config @redis_alias_config ||= {} end |
#redis_fields_config ⇒ Object
store informations about current class fields settings
13 14 15 |
# File 'lib/redis-model-extension/config.rb', line 13 def redis_fields_config @redis_model_config ||= {} end |
#redis_fields_defaults_config ⇒ Object
store informations about current class fields defaults settings
18 19 20 |
# File 'lib/redis-model-extension/config.rb', line 18 def redis_fields_defaults_config @redis_model_defaults_config ||= {} end |
#redis_key_config ⇒ Object
store informations about current class redis key fields
23 24 25 |
# File 'lib/redis-model-extension/config.rb', line 23 def redis_key_config @redis_key_config ||= [] end |
#redis_save_fields_with_nil_conf ⇒ Object
store informations about saving nil values
8 9 10 |
# File 'lib/redis-model-extension/config.rb', line 8 def redis_save_fields_with_nil_conf @redis_save_fields_with_nil_conf.nil? ? @redis_save_fields_with_nil_conf = true : @redis_save_fields_with_nil_conf end |