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.
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/write_xlsx/package/table.rb', line 17 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.
15 16 17 |
# File 'lib/write_xlsx/package/table.rb', line 15 def custom_total @custom_total end |
#format ⇒ Object
Returns the value of attribute format.
14 15 16 |
# File 'lib/write_xlsx/package/table.rb', line 14 def format @format end |
#formula ⇒ Object
Returns the value of attribute formula.
14 15 16 |
# File 'lib/write_xlsx/package/table.rb', line 14 def formula @formula end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
13 14 15 |
# File 'lib/write_xlsx/package/table.rb', line 13 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/write_xlsx/package/table.rb', line 14 def name @name end |
#name_format ⇒ Object
Returns the value of attribute name_format.
14 15 16 |
# File 'lib/write_xlsx/package/table.rb', line 14 def name_format @name_format end |
#total_function ⇒ Object
Returns the value of attribute total_function.
15 16 17 |
# File 'lib/write_xlsx/package/table.rb', line 15 def total_function @total_function end |
#total_string ⇒ Object
Returns the value of attribute total_string.
15 16 17 |
# File 'lib/write_xlsx/package/table.rb', line 15 def total_string @total_string end |