Method: OpenC3::MicroserviceModel.all
- Defined in:
- lib/openc3/models/microservice_model.rb
.all(scope: nil) ⇒ Object
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/openc3/models/microservice_model.rb', line 65 def self.all(scope: nil) scoped = {} unscoped = super(PRIMARY_KEY) unscoped.each do |name, json| if !scope or name.split("__")[0] == scope scoped[name] = json end end scoped end |