Class: ActiveRecordUtils::Browser::Column
- Inherits:
-
Object
- Object
- ActiveRecordUtils::Browser::Column
- Defined in:
- lib/activerecord/utils/browser.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.
247 248 249 250 251 252 |
# File 'lib/activerecord/utils/browser.rb', line 247 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.
254 255 256 |
# File 'lib/activerecord/utils/browser.rb', line 254 def default @default end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
254 255 256 |
# File 'lib/activerecord/utils/browser.rb', line 254 def name @name end |
#null ⇒ Object (readonly)
Returns the value of attribute null.
254 255 256 |
# File 'lib/activerecord/utils/browser.rb', line 254 def null @null end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
254 255 256 |
# File 'lib/activerecord/utils/browser.rb', line 254 def type @type end |