Class: Tramp::Column
- Inherits:
-
Struct
- Object
- Struct
- Tramp::Column
- Defined in:
- lib/tramp/column.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
Returns the value of attribute default.
-
#name ⇒ Object
Returns the value of attribute name.
-
#null ⇒ Object
Returns the value of attribute null.
-
#sql_type ⇒ Object
Returns the value of attribute sql_type.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, default, sql_type, null) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(name, default, sql_type, null) ⇒ Column
Returns a new instance of Column.
28 29 30 31 |
# File 'lib/tramp/column.rb', line 28 def initialize(name, default, sql_type, null) super @type = simplified_type(sql_type) end |
Instance Attribute Details
#default ⇒ Object
Returns the value of attribute default
25 26 27 |
# File 'lib/tramp/column.rb', line 25 def default @default end |
#name ⇒ Object
Returns the value of attribute name
25 26 27 |
# File 'lib/tramp/column.rb', line 25 def name @name end |
#null ⇒ Object
Returns the value of attribute null
25 26 27 |
# File 'lib/tramp/column.rb', line 25 def null @null end |
#sql_type ⇒ Object
Returns the value of attribute sql_type
25 26 27 |
# File 'lib/tramp/column.rb', line 25 def sql_type @sql_type end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
26 27 28 |
# File 'lib/tramp/column.rb', line 26 def type @type end |