Method: OpenC3::NoteModel#initialize

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

#initialize(scope:, start:, stop:, color: nil, description:, type: NOTE_TYPE, updated_at: 0) ⇒ NoteModel

Returns a new instance of NoteModel.

Parameters:

  • scope (String)
    • OpenC3 scope to track event to

  • start (Integer)
    • start of the event in seconds from Epoch

  • stop (Integer)
    • stop of the event in seconds from Epoch

  • color (String) (defaults to: nil)
    • The event color

  • description (String)
    • What the event is about



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/openc3/models/note_model.rb', line 54

def initialize(
  scope:,
  start:,
  stop:,
  color: nil,
  description:,
  type: NOTE_TYPE,
  updated_at: 0
)
  super(start: start, scope: scope, updated_at: updated_at)
  @start = start
  @stop = stop
  @color = color
  @description = description
  @type = type # For the as_json, from_json round trip
end