Method: OpenC3::TriggerGroupModel.get

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

.get(name:, scope:) ⇒ GroupModel

Return the object with the name at

Returns:

  • (GroupModel)

    Return the object with the name at



35
36
37
38
39
40
# File 'lib/openc3/models/trigger_group_model.rb', line 35

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