Class: FlattenRecord::Meta::MethodColumn
- Defined in:
- lib/flatten_record/meta/method_column.rb
Instance Attribute Summary
Attributes inherited from Column
Attributes inherited from Node
#children, #model, #parent, #target_model
Instance Method Summary collapse
-
#initialize(parent, method, type, target_model, model, options = {}) ⇒ MethodColumn
constructor
A new instance of MethodColumn.
Methods inherited from Column
#denormalize, #name, #nullify, #type
Methods inherited from Node
Constructor Details
#initialize(parent, method, type, target_model, model, options = {}) ⇒ MethodColumn
Returns a new instance of MethodColumn.
4 5 6 7 8 9 10 |
# File 'lib/flatten_record/meta/method_column.rb', line 4 def initialize(parent, method, type, target_model, model, ={}) @column = Struct. new(:name, :default, :type, :null). new(method, [:default], type, [:null]) super(parent, @column, target_model, model) end |