Class: DbBrowser::ConnectionMan::Column
- Inherits:
-
Object
- Object
- DbBrowser::ConnectionMan::Column
- Defined in:
- lib/dbbrowser/connection.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#null ⇒ Object
readonly
Returns the value of attribute null.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type, default, null) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(name, type, default, null) ⇒ Column
Returns a new instance of Column.
220 221 222 223 224 225 |
# File 'lib/dbbrowser/connection.rb', line 220 def initialize(name, type, default, null) @name = name @type = type # note: is sql_type @default = default @null = null # note: true|false depending if NOT NULL or not end |
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default.
227 228 229 |
# File 'lib/dbbrowser/connection.rb', line 227 def default @default end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
227 228 229 |
# File 'lib/dbbrowser/connection.rb', line 227 def name @name end |
#null ⇒ Object (readonly)
Returns the value of attribute null.
227 228 229 |
# File 'lib/dbbrowser/connection.rb', line 227 def null @null end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
227 228 229 |
# File 'lib/dbbrowser/connection.rb', line 227 def type @type end |