class Seiun::XMLParsers::RecordXML
Public Class Methods
each(xml_str, find_tag: "records", &block)
click to toggle source
# File lib/seiun/xml_parsers/record_xml.rb, line 5 def each(xml_str, find_tag: "records", &block) parse(xml_str, find_tag, block) end
Public Instance Methods
to_hash(strict_mode = false)
click to toggle source
Calls superclass method
Seiun::XMLParsers::Base#to_hash
# File lib/seiun/xml_parsers/record_xml.rb, line 10 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