Class: Spinoza::Table::Column
- Inherits:
-
Object
- Object
- Spinoza::Table::Column
- Defined in:
- lib/spinoza/system/table.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#primary ⇒ Object
readonly
Returns the value of attribute primary.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type, primary) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(name, type, primary) ⇒ Column
Returns a new instance of Column.
13 14 15 |
# File 'lib/spinoza/system/table.rb', line 13 def initialize name, type, primary @name, @type, @primary = name, type, primary end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/spinoza/system/table.rb', line 9 def name @name end |
#primary ⇒ Object (readonly)
Returns the value of attribute primary.
11 12 13 |
# File 'lib/spinoza/system/table.rb', line 11 def primary @primary end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
10 11 12 |
# File 'lib/spinoza/system/table.rb', line 10 def type @type end |