Class: SybaseDefinitions::Column
- Inherits:
-
Object
- Object
- SybaseDefinitions::Column
- Defined in:
- lib/marjoree/sybase_definitions.rb
Instance Method Summary collapse
- #column_size ⇒ Object
- #exists? ⇒ Boolean
-
#initialize(column_map) ⇒ Column
constructor
A new instance of Column.
- #nullable? ⇒ Boolean
- #type ⇒ Object
Constructor Details
#initialize(column_map) ⇒ Column
Returns a new instance of Column.
164 165 166 |
# File 'lib/marjoree/sybase_definitions.rb', line 164 def initialize( column_map ) @map = column_map end |
Instance Method Details
#column_size ⇒ Object
176 177 178 |
# File 'lib/marjoree/sybase_definitions.rb', line 176 def column_size return @map["COLUMN_SIZE"] end |
#exists? ⇒ Boolean
180 181 182 |
# File 'lib/marjoree/sybase_definitions.rb', line 180 def exists? return !@map.nil? end |
#nullable? ⇒ Boolean
172 173 174 |
# File 'lib/marjoree/sybase_definitions.rb', line 172 def nullable? return @map["IS_NULLABLE"].eql?( "YES" ) end |
#type ⇒ Object
168 169 170 |
# File 'lib/marjoree/sybase_definitions.rb', line 168 def type return @map["TYPE_NAME"] end |