6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/money_s3/builders/kurz_rozd.rb', line 6
def builder
root = Ox::Element.new(name)
root = add_attributes_and_namespaces(root)
root << build_element('Typ', data[:typ], data[:typ_attributes]) if data.key? :typ
root << build_element('Preceneni', data[:preceneni], data[:preceneni_attributes]) if data.key? :preceneni
root << build_element('Castka', data[:castka], data[:castka_attributes]) if data.key? :castka
root << build_element('KRPoradi', data[:kr_poradi], data[:kr_poradi_attributes]) if data.key? :kr_poradi
if data.key? :doklad
root << DoklRefType.new('Doklad', data[:doklad]).builder
end
root
end
|