6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/money_s3/builders/adresa_type.rb', line 6
def builder
root = Ox::Element.new(name)
root = add_attributes_and_namespaces(root)
root << build_element('Ulice', data[:ulice], data[:ulice_attributes]) if data.key? :ulice
root << build_element('Misto', data[:misto], data[:misto_attributes]) if data.key? :misto
root << build_element('PSC', data[:psc], data[:psc_attributes]) if data.key? :psc
root << build_element('Stat', data[:stat], data[:stat_attributes]) if data.key? :stat
root << build_element('KodStatu', data[:kod_statu], data[:kod_statu_attributes]) if data.key? :kod_statu
root
end
|