Class: Reactive::MetaModel::ActiveRecordModel::Column
- Inherits:
-
Column
- Object
- Column
- Reactive::MetaModel::ActiveRecordModel::Column
- Defined in:
- lib/activerecord_meta_model.rb
Instance Method Summary collapse
-
#initialize(column) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(column) ⇒ Column
Returns a new instance of Column.
45 46 47 |
# File 'lib/activerecord_meta_model.rb', line 45 def initialize(column) @name, @type, @primary = column.name.to_sym, column.type, column.primary end |