class EmpireAvenue::IdentityMap
Tracks objects to help ensure that each object gets loaded only once. See: www.martinfowler.com/eaaCatalog/identityMap.html
Public Instance Methods
fetch(id)
click to toggle source
@param id @return [Object]
# File lib/empireavenue/identity_map.rb, line 9 def fetch(id) self[id] end
store(id, object)
click to toggle source
@param id @param object @return [Object]
# File lib/empireavenue/identity_map.rb, line 16 def store(id, object) self[id] = object end