Method: OpenC3::Model#initialize
- Defined in:
- lib/openc3/models/model.rb
#initialize(primary_key, **kw_args) ⇒ Model
Store the primary key and keyword arguments
131 132 133 134 135 136 137 138 |
# File 'lib/openc3/models/model.rb', line 131 def initialize(primary_key, **kw_args) @primary_key = primary_key @name = kw_args[:name] @updated_at = kw_args[:updated_at] @plugin = kw_args[:plugin] @scope = kw_args[:scope] @destroyed = false end |