Class: OoxmlParser::ShapeSize

Inherits:
Object
  • Object
show all
Defined in:
lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/shape_size.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width = nil, height = nil) ⇒ ShapeSize

Returns a new instance of ShapeSize.



5
6
7
8
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/shape_size.rb', line 5

def initialize(width = nil, height = nil)
  @width = width
  @height = height
end

Instance Attribute Details

#heightObject

Returns the value of attribute height.



3
4
5
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/shape_size.rb', line 3

def height
  @height
end

#widthObject

Returns the value of attribute width.



3
4
5
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/shape_size.rb', line 3

def width
  @width
end