Sha256: 8161486f4e48d789f26ee995b5994b9058eea777686ab46566974852d042beae
Contents?: true
Size: 475 Bytes
Versions: 6
Compression:
Stored size: 475 Bytes
Contents
# puts "executing fixed_width.ctl" source :in, { :file => 'data/xml.xml', :parser => :xml }, { :collection => 'people/person', :fields => [ :first_name, :last_name, { :name => :ssn, :xpath => 'social_security_number' }, { :name => :age, :type => :integer } ] } destination :out, { :file => 'output/xml.txt' }, { :order => [:first_name, :last_name, :ssn] } transform :ssn, :sha1 transform(:ssn){ |v| v[0,24] }
Version data entries
6 entries across 6 versions & 4 rubygems