class EntityCache::Subject
Public Class Methods
hash_key(entity_class, specifier=nil)
click to toggle source
# File lib/entity_cache/subject.rb, line 17 def self.hash_key(entity_class, specifier=nil) if specifier.nil? "#{entity_class}" else "#{entity_class}#{hash_key_separator}#{specifier}" end end
hash_key_separator()
click to toggle source
# File lib/entity_cache/subject.rb, line 25 def self.hash_key_separator '/' end
Public Instance Methods
hash()
click to toggle source
# File lib/entity_cache/subject.rb, line 13 def hash hash_key.hash end
hash_key()
click to toggle source
# File lib/entity_cache/subject.rb, line 8 def hash_key self.class.hash_key(entity_class, specifier) end
Also aliased as: to_s