Class: Writexlsx::Package::Table::ColumnData

Inherits:
Object
  • Object
show all
Defined in:
lib/write_xlsx/package/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, param = {}) ⇒ ColumnData


16
17
18
19
20
21
22
23
24
# File 'lib/write_xlsx/package/table.rb', line 16

def initialize(id, param = {})
  @id             = id
  @name           = "Column#{id}"
  @total_string   = ''
  @total_function = ''
  @formula        = ''
  @format         = nil
  @user_data      = param[id-1] if param
end

Instance Attribute Details

#formatObject

Returns the value of attribute format


13
14
15
# File 'lib/write_xlsx/package/table.rb', line 13

def format
  @format
end

#formulaObject

Returns the value of attribute formula


13
14
15
# File 'lib/write_xlsx/package/table.rb', line 13

def formula
  @formula
end

#idObject (readonly)

Returns the value of attribute id


12
13
14
# File 'lib/write_xlsx/package/table.rb', line 12

def id
  @id
end

#nameObject

Returns the value of attribute name


13
14
15
# File 'lib/write_xlsx/package/table.rb', line 13

def name
  @name
end

#total_functionObject

Returns the value of attribute total_function


14
15
16
# File 'lib/write_xlsx/package/table.rb', line 14

def total_function
  @total_function
end

#total_stringObject

Returns the value of attribute total_string


14
15
16
# File 'lib/write_xlsx/package/table.rb', line 14

def total_string
  @total_string
end