Sha256: dd8dd8864c0792e3d5383e24df209763914a33c4691483ab93686da202ef82ef
Contents?: true
Size: 977 Bytes
Versions: 6
Compression:
Stored size: 977 Bytes
Contents
module MoneyS3 module Builders class InvDoklType include ParserCore::BaseBuilder def builder root = Ox::Element.new(name) root = add_attributes_and_namespaces(root) root << build_element('CisloD', data[:cislo_d], data[:cislo_d_attributes]) if data.key? :cislo_d root << build_element('InvID', data[:inv_id], data[:inv_id_attributes]) if data.key? :inv_id root << build_element('Popis', data[:popis], data[:popis_attributes]) if data.key? :popis root << build_element('Prac', data[:prac], data[:prac_attributes]) if data.key? :prac root << build_element('Kontr', data[:kontr], data[:kontr_attributes]) if data.key? :kontr root << build_element('Poznamka', data[:poznamka], data[:poznamka_attributes]) if data.key? :poznamka if data.key? :polozka data[:polozka].each { |i| root << PolInvDoklType.new('Polozka', i).builder } end root end end end end
Version data entries
6 entries across 6 versions & 1 rubygems