Class: Writexlsx::Package::Table::ColumnData
- Inherits:
-
Object
- Object
- Writexlsx::Package::Table::ColumnData
- Defined in:
- lib/write_xlsx/package/table.rb
Instance Attribute Summary collapse
-
#custom_total ⇒ Object
Returns the value of attribute custom_total.
-
#format ⇒ Object
Returns the value of attribute format.
-
#formula ⇒ Object
Returns the value of attribute formula.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#name_format ⇒ Object
Returns the value of attribute name_format.
-
#total_function ⇒ Object
Returns the value of attribute total_function.
-
#total_string ⇒ Object
Returns the value of attribute total_string.
Instance Method Summary collapse
-
#initialize(id, param = {}) ⇒ ColumnData
constructor
A new instance of ColumnData.
Constructor Details
#initialize(id, param = {}) ⇒ ColumnData
Returns a new instance of ColumnData.
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/write_xlsx/package/table.rb', line 23 def initialize(id, param = {}) @id = id @name = "Column#{id}" @total_string = '' @total_function = '' @custom_total = '' @formula = '' @format = nil @name_format = nil @user_data = param[id - 1] if param end |
Instance Attribute Details
#custom_total ⇒ Object
Returns the value of attribute custom_total.
21 22 23 |
# File 'lib/write_xlsx/package/table.rb', line 21 def custom_total @custom_total end |
#format ⇒ Object
Returns the value of attribute format.
20 21 22 |
# File 'lib/write_xlsx/package/table.rb', line 20 def format @format end |
#formula ⇒ Object
Returns the value of attribute formula.
20 21 22 |
# File 'lib/write_xlsx/package/table.rb', line 20 def formula @formula end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
19 20 21 |
# File 'lib/write_xlsx/package/table.rb', line 19 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
20 21 22 |
# File 'lib/write_xlsx/package/table.rb', line 20 def name @name end |
#name_format ⇒ Object
Returns the value of attribute name_format.
20 21 22 |
# File 'lib/write_xlsx/package/table.rb', line 20 def name_format @name_format end |
#total_function ⇒ Object
Returns the value of attribute total_function.
21 22 23 |
# File 'lib/write_xlsx/package/table.rb', line 21 def total_function @total_function end |
#total_string ⇒ Object
Returns the value of attribute total_string.
21 22 23 |
# File 'lib/write_xlsx/package/table.rb', line 21 def total_string @total_string end |