Method: OpenC3::Model#initialize
- Defined in:
- lib/openc3/models/model.rb
#initialize(primary_key, **kw_args) ⇒ Model
Store the primary key and keyword arguments
126 127 128 129 130 131 132 133 |
# File 'lib/openc3/models/model.rb', line 126 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 |