Class: OoxmlParser::TableCellMargin
- Inherits:
-
Object
- Object
- OoxmlParser::TableCellMargin
- Defined in:
- lib/ooxml_parser/common_parser/common_data/table/properties/table_cell_margin.rb
Instance Attribute Summary collapse
-
#bottom ⇒ Object
Returns the value of attribute bottom.
-
#left ⇒ Object
Returns the value of attribute left.
-
#right ⇒ Object
Returns the value of attribute right.
-
#top ⇒ Object
Returns the value of attribute top.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(left = nil, right = nil, top = nil, bottom = nil) ⇒ TableCellMargin
constructor
A new instance of TableCellMargin.
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
#bottom ⇒ Object
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 |
#left ⇒ Object
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 |
#right ⇒ Object
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 |
#top ⇒ Object
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 |