Class: DataFactory::Column
- Inherits:
-
Object
- Object
- DataFactory::Column
- Defined in:
- lib/data_factory/column.rb
Instance Attribute Summary collapse
-
#column_name ⇒ Object
Returns the value of attribute column_name.
-
#data_length ⇒ Object
Returns the value of attribute data_length.
-
#data_precision ⇒ Object
Returns the value of attribute data_precision.
-
#data_scale ⇒ Object
Returns the value of attribute data_scale.
-
#data_type ⇒ Object
Returns the value of attribute data_type.
-
#nullable ⇒ Object
Returns the value of attribute nullable.
-
#position ⇒ Object
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize ⇒ Column
constructor
A new instance of Column.
- #nullable? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Column
Returns a new instance of Column.
6 7 |
# File 'lib/data_factory/column.rb', line 6 def initialize end |
Instance Attribute Details
#column_name ⇒ Object
Returns the value of attribute column_name.
4 5 6 |
# File 'lib/data_factory/column.rb', line 4 def column_name @column_name end |
#data_length ⇒ Object
Returns the value of attribute data_length.
4 5 6 |
# File 'lib/data_factory/column.rb', line 4 def data_length @data_length end |
#data_precision ⇒ Object
Returns the value of attribute data_precision.
4 5 6 |
# File 'lib/data_factory/column.rb', line 4 def data_precision @data_precision end |
#data_scale ⇒ Object
Returns the value of attribute data_scale.
4 5 6 |
# File 'lib/data_factory/column.rb', line 4 def data_scale @data_scale end |
#data_type ⇒ Object
Returns the value of attribute data_type.
4 5 6 |
# File 'lib/data_factory/column.rb', line 4 def data_type @data_type end |
#nullable ⇒ Object
Returns the value of attribute nullable.
4 5 6 |
# File 'lib/data_factory/column.rb', line 4 def nullable @nullable end |
#position ⇒ Object
Returns the value of attribute position.
4 5 6 |
# File 'lib/data_factory/column.rb', line 4 def position @position end |
Instance Method Details
#nullable? ⇒ Boolean
9 10 11 |
# File 'lib/data_factory/column.rb', line 9 def nullable? nullable end |
#to_s ⇒ Object
13 14 15 |
# File 'lib/data_factory/column.rb', line 13 def to_s "#{@column_name} #{@data_type} #{data_length} #{data_scale} #{data_precision} #{position.to_s}" end |