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.
56 57 58 59 60 61 62 |
# File 'lib/openc3/models/model.rb', line 56 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 |