module SBF::Client::Entities::DefaultCacheable

Public Class Methods

included(klass) click to toggle source
# File lib/stbaldricks/entities/lib/default_cacheable.rb, line 7
def self.included(klass)
  klass.class_eval do
    include Cacheable
    cache_id_from_hash ->(h) { [h[:id]] }
    cache_id -> { [id] }
  end
end