class OoxmlParser::ProtectedRange
Class for parsing <protectedRange> tag
Attributes
@return [String] Name
of hashing algorithm
@return [String] Hash value for the password
@return [String] Range reference
@return [String] Salt value for the password
@return [Integer] Number of times the hashing function shall be iteratively run
Public Instance Methods
Source
# File lib/ooxml_parser/xlsx_parser/workbook/worksheet/protected_range.rb, line 22 def parse(node) node.attributes.each do |key, value| case key when 'algorithmName' @algorithm_name = value.value.to_s when 'hashValue' @hash_value = value.value.to_s when 'saltValue' @salt_value = value.value.to_s when 'spinCount' @spin_count = value.value.to_i when 'name' @name = value.value.to_s when 'sqref' @reference_sequence = value.value.to_s end end self end
Parse ProtectedRange
data @param [Nokogiri::XML:Element] node with ProtectedRange
data @return [Sheet] value of ProtectedRange