Class: OoxmlParser::ShapeMargins

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_margins.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ShapeMargins.



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

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.



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

def left
  @left
end

#rightObject

Returns the value of attribute right.



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

def right
  @right
end

#topObject

Returns the value of attribute top.



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

def top
  @top
end