class SaltParser::Ofx::Parser::OFX211
Constants
- VERSION
Public Class Methods
parse_headers(header_text)
click to toggle source
# File lib/ofx/parser/ofx211.rb, line 7 def self.parse_headers(header_text) Nokogiri::XML(header_text).children.each do |element| if element.name == "OFX" headers = element.text.gsub("\"",'') .split(/\s+/) .map { |el| el.split("=") } .flatten return Hash[*headers] end end end