Class: OoxmlParser::ShapeSize

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#heightObject

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

#widthObject

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