Class: Writexlsx::Package::Table::ColumnData
- Inherits:
-
Object
- Object
- Writexlsx::Package::Table::ColumnData
- Defined in:
- lib/write_xlsx/package/table.rb
Instance Attribute Summary collapse
-
#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.
-
#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.
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
#format ⇒ Object
Returns the value of attribute format.
13 14 15 |
# File 'lib/write_xlsx/package/table.rb', line 13 def format @format end |
#formula ⇒ Object
Returns the value of attribute formula.
13 14 15 |
# File 'lib/write_xlsx/package/table.rb', line 13 def formula @formula end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
12 13 14 |
# File 'lib/write_xlsx/package/table.rb', line 12 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/write_xlsx/package/table.rb', line 13 def name @name end |
#total_function ⇒ Object
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_string ⇒ Object
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 |