Sha256: 6af2911d398faa572a0c9c5c2af50ecfaac0728a6dc03a9446e827ecd162521a
Contents?: true
Size: 954 Bytes
Versions: 5
Compression:
Stored size: 954 Bytes
Contents
require 'money_s3/builders/base_builder' require 'money_s3/builders/pol_inv_dokl_type' module MoneyS3 module Builders class InvDoklType include 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('CisloD', data[:cislo_d]) if data.key? :cislo_d root << build_element('InvID', data[:inv_id]) if data.key? :inv_id root << build_element('Popis', data[:popis]) if data.key? :popis root << build_element('Prac', data[:prac]) if data.key? :prac root << build_element('Kontr', data[:kontr]) if data.key? :kontr root << build_element('Poznamka', data[:poznamka]) 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
5 entries across 5 versions & 1 rubygems