Sha256: fc1334586d19a4d819ab67bb78906ec698c5226f6e3637d2a6993e545f3cd5a5
Contents?: true
Size: 357 Bytes
Versions: 12
Compression:
Stored size: 357 Bytes
Contents
module EY class CloudClient class ModelRegistry def initialize @registry = Hash.new { |h,k| h[k] = {} } end def find(klass, id) if id @registry[klass][id] end end def set(klass, id, obj) if id && obj @registry[klass][id] = obj end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems