class Axlsx::PivotTables
A simple, self serializing class for storing pivot tables
Attributes
worksheet[R]
The worksheet that owns this collection of pivot tables @return [Worksheet]
Public Class Methods
new(worksheet)
click to toggle source
creates a new Tables
object
Calls superclass method
Axlsx::SimpleTypedList::new
# File lib/axlsx/workbook/worksheet/pivot_tables.rb, line 7 def initialize(worksheet) raise ArgumentError, "you must provide a worksheet" unless worksheet.is_a?(Worksheet) super PivotTable @worksheet = worksheet end
Public Instance Methods
relationships()
click to toggle source
returns the relationships required by this collection
# File lib/axlsx/workbook/worksheet/pivot_tables.rb, line 18 def relationships return [] if empty? map{ |pivot_table| Relationship.new(pivot_table, PIVOT_TABLE_R, "../#{pivot_table.pn}") } end