Method: OpenC3::Model.get_model

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

.get_model(name:, scope:) ⇒ Object|nil

Calls self.get and then from_json to turn the Hash configuration into a Ruby Model object.



101
102
103
104
105
106
107
108
# File 'lib/openc3/models/model.rb', line 101

def self.get_model(name:, scope:)
  json = get(name: name, scope: scope)
  if json
    return from_json(json, scope: scope)
  else
    return nil
  end
end