6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/money_s3/builders/bank_spojeni_type.rb', line 6
def builder
root = Ox::Element.new(name)
root = add_attributes_and_namespaces(root)
root << build_element('Ucet', data[:ucet], data[:ucet_attributes]) if data.key? :ucet
root << build_element('KodBanky', data[:kod_banky], data[:kod_banky_attributes]) if data.key? :kod_banky
root << build_element('Mena', data[:mena], data[:mena_attributes]) if data.key? :mena
root << build_element('Ucel', data[:ucel], data[:ucel_attributes]) if data.key? :ucel
root
end
|