Class: Spinoza::Table::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/spinoza/system/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/spinoza/system/table.rb', line 9

def name
  @name
end

#primaryObject (readonly)

Returns the value of attribute primary.



11
12
13
# File 'lib/spinoza/system/table.rb', line 11

def primary
  @primary
end

#typeObject (readonly)

Returns the value of attribute type.



10
11
12
# File 'lib/spinoza/system/table.rb', line 10

def type
  @type
end