Class: OoxmlParser::Pane
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::Pane
- Defined in:
- lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/sheet_view/pane.rb
Overview
Class for ‘pane` data
Instance Attribute Summary collapse
-
#state ⇒ Object
Returns the value of attribute state.
-
#top_left_cell ⇒ Object
Returns the value of attribute top_left_cell.
-
#x_split ⇒ Object
Returns the value of attribute x_split.
-
#y_split ⇒ Object
Returns the value of attribute y_split.
Attributes inherited from OOXMLDocumentObject
Instance Method Summary collapse
-
#parse(node) ⇒ Pane
Parse Pane object.
Methods inherited from OOXMLDocumentObject
#==, add_to_xmls_stack, copy_file_and_rename_to_zip, current_xml, dir, encrypted_file?, get_link_from_rels, #initialize, unzip_file, #with_data?
Methods included from OoxmlDocumentObjectHelper
Constructor Details
This class inherits a constructor from OoxmlParser::OOXMLDocumentObject
Instance Attribute Details
#state ⇒ Object
Returns the value of attribute state.
4 5 6 |
# File 'lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/sheet_view/pane.rb', line 4 def state @state end |
#top_left_cell ⇒ Object
Returns the value of attribute top_left_cell.
4 5 6 |
# File 'lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/sheet_view/pane.rb', line 4 def top_left_cell @top_left_cell end |
#x_split ⇒ Object
Returns the value of attribute x_split.
4 5 6 |
# File 'lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/sheet_view/pane.rb', line 4 def x_split @x_split end |
#y_split ⇒ Object
Returns the value of attribute y_split.
4 5 6 |
# File 'lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/sheet_view/pane.rb', line 4 def y_split @y_split end |
Instance Method Details
#parse(node) ⇒ Pane
Parse Pane object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/sheet_view/pane.rb', line 9 def parse(node) node.attributes.each do |key, value| case key when 'state' @state = value.value.to_sym when 'topLeftCell' @top_left_cell = Coordinates.parse_coordinates_from_string(value.value) when 'xSplit' @x_split = value.value when 'ySplit' @y_split = value.value end end self end |