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.
241 242 243 244 245 246 |
# File 'lib/dbbrowser/connection.rb', line 241 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.
248 249 250 |
# File 'lib/dbbrowser/connection.rb', line 248 def default @default end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
248 249 250 |
# File 'lib/dbbrowser/connection.rb', line 248 def name @name end |
#null ⇒ Object (readonly)
Returns the value of attribute null.
248 249 250 |
# File 'lib/dbbrowser/connection.rb', line 248 def null @null end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
248 249 250 |
# File 'lib/dbbrowser/connection.rb', line 248 def type @type end |