Class: Acb::MasterColumn

Inherits:
Object
  • Object
show all
Defined in:
lib/acb/master_column.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, **options) ⇒ MasterColumn

Returns a new instance of MasterColumn.



7
8
9
10
# File 'lib/acb/master_column.rb', line 7

def initialize(key, **options)
  @key = key
  @options = options
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



5
6
7
# File 'lib/acb/master_column.rb', line 5

def key
  @key
end

Instance Method Details

#to_column(name) ⇒ Object



12
13
14
# File 'lib/acb/master_column.rb', line 12

def to_column(name)
  Column.new(name, **@options)
end