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.
123 124 125 126 127 128 129 130 131 132 133 |
# File 'lib/openc3/models/note_model.rb', line 123 def as_json(*a) return { 'scope' => @scope, 'start' => @start, 'stop' => @stop, 'color' => @color, 'description' => @description, 'type' => NOTE_TYPE, 'updated_at' => @updated_at, } end |