Method: OpenC3::Model.get_all_models

Defined in:
lib/openc3/models/model.rb

.get_all_models(scope:) ⇒ Array<Object>

Returns All the models (as Model objects) stored under the primary key.

Returns:

  • (Array<Object>)

    All the models (as Model objects) stored under the primary key



111
112
113
114
115
# File 'lib/openc3/models/model.rb', line 111

def self.get_all_models(scope:)
  models = {}
  all(scope: scope).each { |name, json| models[name] = from_json(json, scope: scope) }
  models
end