lib/axlsx/drawing/graphic_frame.rb in axlsx-1.0.8 vs lib/axlsx/drawing/graphic_frame.rb in axlsx-1.0.9
- old
+ new
@@ -10,22 +10,20 @@
# A anchor that holds this frame
# @return [TwoCellAnchor]
attr_reader :anchor
- # The relationship id for this graphic
- # @return [String]
- attr_reader :rId
-
# Creates a new GraphicFrame object
# @param [TwoCellAnchor] anchor
# @param [Class] chart_type
def initialize(anchor, chart_type, options)
DataTypeValidator.validate "Drawing.chart_type", Chart, chart_type
@anchor = anchor
@chart = chart_type.new(self, options)
end
+ # The relationship id for this graphic
+ # @return [String]
def rId
"rId#{@anchor.index+1}"
end
# Serializes the graphic frame