Class: EasyAxlsx::Building

Inherits:
Object
  • Object
show all
Defined in:
lib/easy_axlsx/building.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ EasyAxlsx::Building

Parameters:

  • params (Hash) (defaults to: {})

    Набор параметров



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

#packageObject (readonly)

Returns the value of attribute package.



3
4
5
# File 'lib/easy_axlsx/building.rb', line 3

def package
  @package
end

#row_itemsObject (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