Class: OoxmlParser::ShapeMargins

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

Overview

Class for working with Shape Margins

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(left = nil, right = nil, top = nil) ⇒ ShapeMargins

Returns a new instance of ShapeMargins.



8
9
10
11
12
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/shape_margins.rb', line 8

def initialize(left = nil, right = nil, top = nil)
  @left = left
  @right = right
  @top = top
end

Instance Attribute Details

#leftObject

Returns the value of attribute left.



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

def left
  @left
end

#rightObject

Returns the value of attribute right.



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

def right
  @right
end

#topObject

Returns the value of attribute top.



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

def top
  @top
end