Sha256: 3f170d248a6fcb8bddc5fe8d46b4d6a8c745c43a83040cd6d77c71a600053866
Contents?: true
Size: 806 Bytes
Versions: 6
Compression:
Stored size: 806 Bytes
Contents
module MoneyS3 module Builders class MsgFaktType < MessageType include ParserCore::BaseBuilder def builder root = Ox::Element.new(name) root = add_attributes_and_namespaces(root) super.nodes.each do |n| root << n end if data.key? :dod_odb root << MsgFirmaType.new('DodOdb', data[:dod_odb]).builder end if data.key? :konec_prij root << MsgFirmaType.new('KonecPrij', data[:konec_prij]).builder end if data.key? :polozka data[:polozka].each { |i| root << MsgFaktPolozType.new('Polozka', i).builder } end if data.key? :uhrada data[:uhrada].each { |i| root << MessageType.new('Uhrada', i).builder } end root end end end end
Version data entries
6 entries across 6 versions & 1 rubygems