Sha256: 94073502b8538328dd82930f4e675334246e3949c6f48f8859c6476ab21bab2b
Contents?: true
Size: 317 Bytes
Versions: 1
Compression:
Stored size: 317 Bytes
Contents
module ModelExplorer class Record attr_reader :primary_key, :attributes, :klass def initialize(primary_key, attributes, klass) @primary_key = primary_key @attributes = attributes.with_indifferent_access @klass = klass end def [](key) attributes[key.to_s] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
model_explorer-0.1.0 | lib/model_explorer/record.rb |