Class: EasyAxlsx::Building
- Inherits:
-
Object
- Object
- EasyAxlsx::Building
- Defined in:
- lib/easy_axlsx/building.rb
Instance Attribute Summary collapse
-
#package ⇒ Object
readonly
Returns the value of attribute package.
-
#row_items ⇒ Object
readonly
Returns the value of attribute row_items.
Instance Method Summary collapse
- #initialize(params = {}) ⇒ EasyAxlsx::Building constructor
Constructor Details
#initialize(params = {}) ⇒ EasyAxlsx::Building
8 9 10 11 |
# File 'lib/easy_axlsx/building.rb', line 8 def initialize(params = {}) @package = params.fetch(:package, nil) @row_items = params.fetch(:row_items, []) end |
Instance Attribute Details
#package ⇒ Object (readonly)
Returns the value of attribute package.
3 4 5 |
# File 'lib/easy_axlsx/building.rb', line 3 def package @package end |
#row_items ⇒ Object (readonly)
Returns the value of attribute row_items.
3 4 5 |
# File 'lib/easy_axlsx/building.rb', line 3 def row_items @row_items end |