Class: ActiveWorkbench::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/active_workbench/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table, id, name) ⇒ Column

Returns a new instance of Column.



97
98
99
100
101
# File 'lib/active_workbench/base.rb', line 97

def initialize table, id, name
  @table = table
  @id = id
  @name = name
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



95
96
97
# File 'lib/active_workbench/base.rb', line 95

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



95
96
97
# File 'lib/active_workbench/base.rb', line 95

def name
  @name
end

#tableObject (readonly)

Returns the value of attribute table.



95
96
97
# File 'lib/active_workbench/base.rb', line 95

def table
  @table
end