Method: OpenC3::NoteModel#as_json
- Defined in:
- lib/openc3/models/note_model.rb
#as_json(*a) ⇒ Hash Also known as: to_s
Returns generated from the NoteModel.
109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/openc3/models/note_model.rb', line 109 def as_json(*a) return { 'scope' => @scope, 'start' => @start, 'stop' => @stop, 'color' => @color, 'description' => @description, 'type' => NOTE_TYPE, 'updated_at' => @updated_at, } end |