Method: OpenC3::Model.all
- Defined in:
- lib/openc3/models/model.rb
.all(primary_key) ⇒ Array<Hash>
Returns All the models (as Hash objects) stored under the primary key.
61 62 63 64 65 66 67 |
# File 'lib/openc3/models/model.rb', line 61 def self.all(primary_key) hash = store.hgetall(primary_key) hash.each do |key, value| hash[key] = JSON.parse(value, :allow_nan => true, :create_additions => true) end hash end |