Method: OpenC3::PluginModel#initialize
- Defined in:
- lib/openc3/models/plugin_model.rb
#initialize(name:, variables: {}, plugin_txt_lines: [], needs_dependencies: false, updated_at: nil, scope:) ⇒ PluginModel
Returns a new instance of PluginModel.
250 251 252 253 254 255 256 257 258 259 260 261 262 |
# File 'lib/openc3/models/plugin_model.rb', line 250 def initialize( name:, variables: {}, plugin_txt_lines: [], needs_dependencies: false, updated_at: nil, scope: ) super("#{scope}__#{PRIMARY_KEY}", name: name, updated_at: updated_at, scope: scope) @variables = variables @plugin_txt_lines = plugin_txt_lines @needs_dependencies = ConfigParser.handle_true_false(needs_dependencies) end |