Method: OpenC3::NoteModel#update

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

#update(start: nil, stop: nil, color: nil, description: nil) ⇒ Object

Update the Redis hash at primary_key



102
103
104
105
106
107
108
109
# File 'lib/openc3/models/note_model.rb', line 102

def update(start: nil, stop: nil, color: nil, description: nil)
  orig_start = @start
  @start = start if start
  @stop = stop if stop
  @color = color if color
  @description = description if description
  create(update: orig_start)
end