Sha256: 154b85962480a1805c1f1ebdf2c9de6f4465f1f0ec5a3e5e9af070b5655535da
Contents?: true
Size: 1.08 KB
Versions: 6
Compression:
Stored size: 1.08 KB
Contents
module MoneyS3 module Builders class Doklad include ParserCore::BaseBuilder def builder root = Ox::Element.new(name) root = add_attributes_and_namespaces(root) root << build_element('Druh', data[:druh], data[:druh_attributes]) if data.key? :druh root << build_element('Cislo', data[:cislo], data[:cislo_attributes]) if data.key? :cislo root << build_element('GUID', data[:guid], data[:guid_attributes]) if data.key? :guid root << build_element('PrijatDokl', data[:prijat_dokl], data[:prijat_dokl_attributes]) if data.key? :prijat_dokl root << build_element('VarSymbol', data[:var_symbol], data[:var_symbol_attributes]) if data.key? :var_symbol root << build_element('Vystaveno', data[:vystaveno], data[:vystaveno_attributes]) if data.key? :vystaveno root << build_element('DatUcPr', data[:dat_uc_pr], data[:dat_uc_pr_attributes]) if data.key? :dat_uc_pr root << build_element('PlnenoDPH', data[:plneno_dph], data[:plneno_dph_attributes]) if data.key? :plneno_dph root end end end end
Version data entries
6 entries across 6 versions & 1 rubygems