Class: Writexlsx::Drawing
- Inherits:
-
Object
- Object
- Writexlsx::Drawing
- Defined in:
- lib/write_xlsx/drawing.rb
Instance Attribute Summary collapse
-
#anchor ⇒ Object
Returns the value of attribute anchor.
-
#decorative ⇒ Object
readonly
Returns the value of attribute decorative.
-
#description ⇒ Object
Returns the value of attribute description.
-
#dimensions ⇒ Object
Returns the value of attribute dimensions.
-
#height ⇒ Object
Returns the value of attribute height.
-
#name ⇒ Object
Returns the value of attribute name.
-
#rel_index ⇒ Object
Returns the value of attribute rel_index.
-
#shape ⇒ Object
Returns the value of attribute shape.
-
#tip ⇒ Object
readonly
Returns the value of attribute tip.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url_rel_index ⇒ Object
Returns the value of attribute url_rel_index.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(type, dimensions, width, height, shape, anchor, rel_index = nil, url_rel_index = nil, tip = nil, name = nil, description = nil, decorative = nil) ⇒ Drawing
constructor
A new instance of Drawing.
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
#anchor ⇒ Object
Returns the value of attribute anchor.
9 10 11 |
# File 'lib/write_xlsx/drawing.rb', line 9 def anchor @anchor end |
#decorative ⇒ Object (readonly)
Returns the value of attribute decorative.
10 11 12 |
# File 'lib/write_xlsx/drawing.rb', line 10 def decorative @decorative end |
#description ⇒ Object
Returns the value of attribute description.
9 10 11 |
# File 'lib/write_xlsx/drawing.rb', line 9 def description @description end |
#dimensions ⇒ Object
Returns the value of attribute dimensions.
9 10 11 |
# File 'lib/write_xlsx/drawing.rb', line 9 def dimensions @dimensions end |
#height ⇒ Object
Returns the value of attribute height.
9 10 11 |
# File 'lib/write_xlsx/drawing.rb', line 9 def height @height end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/write_xlsx/drawing.rb', line 9 def name @name end |
#rel_index ⇒ Object
Returns the value of attribute rel_index.
9 10 11 |
# File 'lib/write_xlsx/drawing.rb', line 9 def rel_index @rel_index end |
#shape ⇒ Object
Returns the value of attribute shape.
9 10 11 |
# File 'lib/write_xlsx/drawing.rb', line 9 def shape @shape end |
#tip ⇒ Object (readonly)
Returns the value of attribute tip.
10 11 12 |
# File 'lib/write_xlsx/drawing.rb', line 10 def tip @tip end |
#type ⇒ Object
Returns the value of attribute type.
9 10 11 |
# File 'lib/write_xlsx/drawing.rb', line 9 def type @type end |
#url_rel_index ⇒ Object
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 |
#width ⇒ Object
Returns the value of attribute width.
9 10 11 |
# File 'lib/write_xlsx/drawing.rb', line 9 def width @width end |