Class: OoxmlParser::TableStyleColumnBandSize

Inherits:
OOXMLDocumentObject show all
Defined in:
lib/ooxml_parser/common_parser/common_data/table/properties/table_style_column_band_size.rb

Overview

Class for parsing ‘w:tblStyleColBandSize` object When a style specifies the format for a band of columns in a table (a set of contiguous columns), this specifies the number of columns in a band.

Instance Attribute Summary collapse

Attributes inherited from OOXMLDocumentObject

#parent

Instance Method Summary collapse

Methods inherited from OOXMLDocumentObject

#==, #boolean_attribute_value, #initialize, #parse_xml, #with_data?

Methods included from OoxmlObjectAttributeHelper

#attribute_enabled?, #option_enabled?

Methods included from OoxmlDocumentObjectHelper

#to_hash

Constructor Details

This class inherits a constructor from OoxmlParser::OOXMLDocumentObject

Instance Attribute Details

#valueInteger

Returns value of table style column band size.

Returns:

  • (Integer)

    value of table style column band size



10
11
12
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/table_style_column_band_size.rb', line 10

def value
  @value
end

Instance Method Details

#parse(node) ⇒ TableStyleColumnBandSize

Parse TableStyleColumnBandSize

Parameters:

  • node (Nokogiri::XML:Node)

    with TableStyleColumnBandSize

Returns:



15
16
17
18
19
20
21
22
23
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/table_style_column_band_size.rb', line 15

def parse(node)
  node.attributes.each do |key, value|
    case key
    when 'val'
      @value = value.value.to_i
    end
  end
  self
end