module CacheJSON::Base::ClassMethods

Public Instance Methods

cache_json_class_specific_overrides() click to toggle source

Just the class-specific overrides

# File lib/cache_json/base.rb, line 78
def cache_json_class_specific_overrides
  @cache_json_class_specific_overrides ||= {}
end
cache_json_full_options() click to toggle source

Getter (inherits from global defaults)

# File lib/cache_json/base.rb, line 83
def cache_json_full_options
  CacheJSON::Config.options.merge(cache_json_class_specific_overrides).merge(class_name: to_s)
end
cache_json_options(options_hash) click to toggle source

Setter

# File lib/cache_json/base.rb, line 73
def cache_json_options(options_hash)
  cache_json_class_specific_overrides.merge!(options_hash)
end