6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/money_s3/builders/ucty_pohybu_type.rb', line 6
def builder
root = Ox::Element.new(name)
root = add_attributes_and_namespaces(root)
root << build_element('UcProdejk', data[:uc_prodejk], data[:uc_prodejk_attributes]) if data.key? :uc_prodejk
root << build_element('UcPrijemk', data[:uc_prijemk], data[:uc_prijemk_attributes]) if data.key? :uc_prijemk
root << build_element('UcVydejky', data[:uc_vydejky], data[:uc_vydejky_attributes]) if data.key? :uc_vydejky
root << build_element('UcVyrobky', data[:uc_vyrobky], data[:uc_vyrobky_attributes]) if data.key? :uc_vyrobky
root << build_element('UcVDodLst', data[:uc_v_dod_lst], data[:uc_v_dod_lst_attributes]) if data.key? :uc_v_dod_lst
root << build_element('UcPDodLst', data[:uc_p_dod_lst], data[:uc_p_dod_lst_attributes]) if data.key? :uc_p_dod_lst
root << build_element('UcManko', data[:uc_manko], data[:uc_manko_attributes]) if data.key? :uc_manko
root << build_element('UcPreb', data[:uc_preb], data[:uc_preb_attributes]) if data.key? :uc_preb
root
end
|