Method: OpenC3::MicroserviceModel.all
- Defined in:
- lib/openc3/models/microservice_model.rb
.all(scope: nil) ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'lib/openc3/models/microservice_model.rb', line 56 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 |