Class: Writexlsx::Drawing

Inherits:
Object
  • Object
show all
Defined in:
lib/write_xlsx/drawing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, dimensions, width, height, shape, anchor, rel_index = nil, url_rel_index = nil, tip = nil, name = nil, description = nil, decorative = nil) ⇒ Drawing

Returns a new instance of Drawing.



12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/write_xlsx/drawing.rb', line 12

def initialize(type, dimensions, width, height, shape, anchor, rel_index = nil, url_rel_index = nil, tip = nil, name = nil, description = nil, decorative = nil)
  @type = type
  @dimensions = dimensions
  @width = width
  @height = height
  @shape = shape
  @anchor = anchor
  @rel_index = rel_index
  @url_rel_index = url_rel_index
  @tip = tip
  @name = name
  @description = description
  @decorative = decorative
end

Instance Attribute Details

#anchorObject

Returns the value of attribute anchor.



9
10
11
# File 'lib/write_xlsx/drawing.rb', line 9

def anchor
  @anchor
end

#decorativeObject (readonly)

Returns the value of attribute decorative.



10
11
12
# File 'lib/write_xlsx/drawing.rb', line 10

def decorative
  @decorative
end

#descriptionObject

Returns the value of attribute description.



9
10
11
# File 'lib/write_xlsx/drawing.rb', line 9

def description
  @description
end

#dimensionsObject

Returns the value of attribute dimensions.



9
10
11
# File 'lib/write_xlsx/drawing.rb', line 9

def dimensions
  @dimensions
end

#heightObject

Returns the value of attribute height.



9
10
11
# File 'lib/write_xlsx/drawing.rb', line 9

def height
  @height
end

#nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/write_xlsx/drawing.rb', line 9

def name
  @name
end

#rel_indexObject

Returns the value of attribute rel_index.



9
10
11
# File 'lib/write_xlsx/drawing.rb', line 9

def rel_index
  @rel_index
end

#shapeObject

Returns the value of attribute shape.



9
10
11
# File 'lib/write_xlsx/drawing.rb', line 9

def shape
  @shape
end

#tipObject (readonly)

Returns the value of attribute tip.



10
11
12
# File 'lib/write_xlsx/drawing.rb', line 10

def tip
  @tip
end

#typeObject

Returns the value of attribute type.



9
10
11
# File 'lib/write_xlsx/drawing.rb', line 9

def type
  @type
end

#url_rel_indexObject

Returns the value of attribute url_rel_index.



9
10
11
# File 'lib/write_xlsx/drawing.rb', line 9

def url_rel_index
  @url_rel_index
end

#widthObject

Returns the value of attribute width.



9
10
11
# File 'lib/write_xlsx/drawing.rb', line 9

def width
  @width
end