Sha256: b7093a46bbdb0a1dc2f95ea1cbd09f29b6146e7e8ebcdc7ca4d71c88e1f9c534
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
module MoneyS3 module Builders class ObdobiDPH2 include ParserCore::BaseBuilder def builder root = Ox::Element.new(name) if data.key? :attributes data[:attributes].each { |k, v| root[k] = v } end root << build_element('DatumOd', data[:datum_od], data[:datum_od_attributes]) if data.key? :datum_od root << build_element('PohD_1', data[:poh_d_1], data[:poh_d_1_attributes]) if data.key? :poh_d_1 root << build_element('PohD_2', data[:poh_d_2], data[:poh_d_2_attributes]) if data.key? :poh_d_2 root << build_element('PohD_3', data[:poh_d_3], data[:poh_d_3_attributes]) if data.key? :poh_d_3 root << build_element('PohD_4', data[:poh_d_4], data[:poh_d_4_attributes]) if data.key? :poh_d_4 root << build_element('PohD_5', data[:poh_d_5], data[:poh_d_5_attributes]) if data.key? :poh_d_5 root << build_element('PohD_6', data[:poh_d_6], data[:poh_d_6_attributes]) if data.key? :poh_d_6 root end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-1.0.0 | lib/money_s3/builders/obdobi_dph2.rb |