Sha256: 7799bf4605b69218481d62d0c1763a3995981568a90fa7bd4e9a6589131a9806
Contents?: true
Size: 432 Bytes
Versions: 7
Compression:
Stored size: 432 Bytes
Contents
module Seiun module XMLParsers class RecordXML < Base class << self def each(xml_str, find_tag: "records", &block) parse(xml_str, find_tag, block) end end def to_hash(strict_mode = false) source = super source.keys.find_all{|key| key =~ /(^[A-Z]|__c$)/ }.each_with_object({}) do |key, hash| hash[key] = source[key] end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems