Module: AttributeColumn::ClassMethods

Defined in:
lib/attribute_column.rb

Instance Method Summary collapse

Instance Method Details

#attribute_column(name, attribute_type) ⇒ Object



30
31
32
# File 'lib/attribute_column.rb', line 30

def attribute_column(name, attribute_type)
  columns_hash[name] = AttributeColumn.generate({name: name, type: attribute_type})
end

#columns_hashObject



26
27
28
# File 'lib/attribute_column.rb', line 26

def columns_hash
  @columns_hash ||= {}
end