Method: OpenC3::Model.set
- Defined in:
- lib/openc3/models/model.rb
.set(json, scope:, queued: false) ⇒ Object
Sets (updates) the redis hash of this model
83 84 85 86 87 |
# File 'lib/openc3/models/model.rb', line 83 def self.set(json, scope:, queued: false) json[:scope] = scope json.transform_keys!(&:to_sym) self.new(**json).create(force: true, queued: queued) end |