Method: OpenC3::ToolModel#as_json

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

#as_json(*a) ⇒ Object



194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# File 'lib/openc3/models/tool_model.rb', line 194

def as_json(*a)
  {
    'name' => @name,
    'folder_name' => @folder_name,
    'icon' => @icon,
    'url' => @url,
    'inline_url' => @inline_url,
    'window' => @window,
    'category' => @category,
    'shown' => @shown,
    'position' => @position,
    'updated_at' => @updated_at,
    'plugin' => @plugin,
    'needs_dependencies' => @needs_dependencies,
    'disable_erb' => @disable_erb,
    'import_map_items' => @import_map_items,
  }
end