Sha256: 4e8329d6a9560e52d201a5da17a90f1281dd8c8c77c21c6a5f6d8012cf4e8a07
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
module MoneyS3 module Builders class AlternativaPrislusenstviType 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('Popis', data[:popis], data[:popis_attributes]) if data.key? :popis root << build_element('PocMJ', data[:poc_mj], data[:poc_mj_attributes]) if data.key? :poc_mj root << build_element('Poradi', data[:poradi], data[:poradi_attributes]) if data.key? :poradi root << build_element('DruhKomp', data[:druh_komp], data[:druh_komp_attributes]) if data.key? :druh_komp root << build_element('Symetric', data[:symetric], data[:symetric_attributes]) if data.key? :symetric if data.key? :km_karta root << KmKartaType.new('KmKarta', data[:km_karta]).builder end if data.key? :sklad root << SkladType.new('Sklad', data[:sklad]).builder end 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/alternativa_prislusenstvi_type.rb |