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