Sha256: 69e823c8ed08b3e669d9879c25a9cffa648acf19f6736afbc19eef230af5695d
Contents?: true
Size: 937 Bytes
Versions: 2
Compression:
Stored size: 937 Bytes
Contents
module MoneyS3 module Builders class Doklad include ParserCore::BaseBuilder def builder root = Ox::Element.new(name) if data.respond_to? :attributes data.attributes.each { |k, v| root[k] = v } end root << build_element('Druh', data[:druh]) if data.key? :druh root << build_element('Cislo', data[:cislo]) if data.key? :cislo root << build_element('GUID', data[:guid]) if data.key? :guid root << build_element('PrijatDokl', data[:prijat_dokl]) if data.key? :prijat_dokl root << build_element('VarSymbol', data[:var_symbol]) if data.key? :var_symbol root << build_element('Vystaveno', data[:vystaveno]) if data.key? :vystaveno root << build_element('DatUcPr', data[:dat_uc_pr]) if data.key? :dat_uc_pr root << build_element('PlnenoDPH', data[:plneno_dph]) if data.key? :plneno_dph root end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.12.0 | lib/money_s3/builders/doklad.rb |
money_s3-0.11.0 | lib/money_s3/builders/doklad.rb |