Class: OoxmlParser::ShapeSize
- Inherits:
-
Object
- Object
- OoxmlParser::ShapeSize
- Defined in:
- lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/shape_size.rb
Overview
Class for working with Shape Size
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(width = nil, height = nil) ⇒ ShapeSize
constructor
A new instance of ShapeSize.
Constructor Details
#initialize(width = nil, height = nil) ⇒ ShapeSize
Returns a new instance of ShapeSize.
8 9 10 11 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/shape_size.rb', line 8 def initialize(width = nil, height = nil) @width = width @height = height end |
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/shape_size.rb', line 6 def height @height end |
#width ⇒ Object
Returns the value of attribute width.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/shape_size.rb', line 6 def width @width end |