Class: Convergence::Column
- Inherits:
-
Object
- Object
- Convergence::Column
- Defined in:
- lib/convergence/column.rb
Constant Summary collapse
- COLUMN_TYPE =
i( smallint mediumint int bigint float double decimal char varchar tinyblob blob mediumblob tinytext text mediumtext longtext enum set date time datetime year )
Instance Attribute Summary collapse
-
#column_name ⇒ Object
Returns the value of attribute column_name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, column_name, options = {}) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(type, column_name, options = {}) ⇒ Column
Returns a new instance of Column.
31 32 33 34 35 |
# File 'lib/convergence/column.rb', line 31 def initialize(type, column_name, = {}) @type = type @column_name = column_name = end |
Instance Attribute Details
#column_name ⇒ Object
Returns the value of attribute column_name.
2 3 4 |
# File 'lib/convergence/column.rb', line 2 def column_name @column_name end |
#options ⇒ Object
Returns the value of attribute options.
2 3 4 |
# File 'lib/convergence/column.rb', line 2 def end |
#type ⇒ Object
Returns the value of attribute type.
2 3 4 |
# File 'lib/convergence/column.rb', line 2 def type @type end |