Class: OoxmlParser::TableCellMargin

Inherits:
Object
  • Object
show all
Defined in:
lib/ooxml_parser/common_parser/common_data/table/properties/table_cell_margin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(left = nil, right = nil, top = nil, bottom = nil) ⇒ TableCellMargin

Returns a new instance of TableCellMargin.



6
7
8
9
10
11
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/table_cell_margin.rb', line 6

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

Instance Attribute Details

#bottomObject

Returns the value of attribute bottom.



4
5
6
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/table_cell_margin.rb', line 4

def bottom
  @bottom
end

#leftObject

Returns the value of attribute left.



4
5
6
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/table_cell_margin.rb', line 4

def left
  @left
end

#rightObject

Returns the value of attribute right.



4
5
6
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/table_cell_margin.rb', line 4

def right
  @right
end

#topObject

Returns the value of attribute top.



4
5
6
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/table_cell_margin.rb', line 4

def top
  @top
end

Instance Method Details

#==(other) ⇒ Object



13
14
15
16
17
18
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/table_cell_margin.rb', line 13

def ==(other)
  @left == other.left &&
    @top == other.top &&
    @right == other.right &&
    @bottom == other.bottom
end