Method: Cosmos::Model.get_all_models
- Defined in:
- lib/cosmos/models/model.rb
.get_all_models(scope:) ⇒ Array<Object>
Returns All the models (as Model objects) stored under the primary key.
103 104 105 106 107 |
# File 'lib/cosmos/models/model.rb', line 103 def self.get_all_models(scope:) models = {} all(scope: scope).each { |name, json| models[name] = from_json(json, scope: scope) } models end |