Module: CacheJSON::Base::ClassMethods
- Defined in:
- lib/cache_json/base.rb
Instance Method Summary collapse
-
#cache_json_class_specific_overrides ⇒ Object
Just the class-specific overrides.
-
#cache_json_full_options ⇒ Object
Getter (inherits from global defaults).
-
#cache_json_options(options_hash) ⇒ Object
Setter.
Instance Method Details
#cache_json_class_specific_overrides ⇒ Object
Just the class-specific overrides
78 79 80 |
# File 'lib/cache_json/base.rb', line 78 def cache_json_class_specific_overrides @cache_json_class_specific_overrides ||= {} end |
#cache_json_full_options ⇒ Object
Getter (inherits from global defaults)
83 84 85 |
# File 'lib/cache_json/base.rb', line 83 def CacheJSON::Config..merge(cache_json_class_specific_overrides).merge(class_name: to_s) end |
#cache_json_options(options_hash) ⇒ Object
Setter
73 74 75 |
# File 'lib/cache_json/base.rb', line 73 def () cache_json_class_specific_overrides.merge!() end |