Method: OpenC3::ActivityModel#add_event

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

#add_event(status:) ⇒ Object

add_event will make an event. This will NOT save the object to the redis database

Parameters:

  • status (String)
    • the event status such as "queued" or "updated" or "created"



403
404
405
406
407
408
409
# File 'lib/openc3/models/activity_model.rb', line 403

def add_event(status:)
  event = {
    'time' => Time.now.to_i,
    'event' => status
  }
  @events << event
end