Sha256: 7c3e6091f747afeca0d6fd986536314e970c37cc58ac013c2e2f740eaaec74f5
Contents?: true
Size: 565 Bytes
Versions: 28
Compression:
Stored size: 565 Bytes
Contents
module SsciInc class PersonName attr_accessor :given_name, :middle_name, :family_name, :affix def initialize(h={}) h.each {|k,v| send("#{k}=", v) if respond_to?("#{k}=") } end def as_xml Nokogiri::XML::Builder.new do |xml| xml.PersonName { xml.GivenName given_name xml.MiddleName middle_name xml.FamilyName family_name xml.Affix affix } end.parent.root end def to_xml as_xml.to_xml end end end
Version data entries
28 entries across 28 versions & 1 rubygems