Method: OpenC3::ReactionModel.get

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

.get(name:, scope:) ⇒ ReactionModel

Return the object with the name at

Returns:



49
50
51
52
53
54
# File 'lib/openc3/models/reaction_model.rb', line 49

def self.get(name:, scope:)
  json = super("#{scope}#{PRIMARY_KEY}", name: name)
  unless json.nil?
    self.from_json(json, name: name, scope: scope)
  end
end