Sha256: 019ec84b95a1ec6534bfdb367acb31b7a7e7396d1acec0754cf4d655b77ce71e
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
require 'money_s3/builders/base_builder' require 'money_s3/builders/kurz_type' module MoneyS3 module Builders class KurzListek include BaseBuilder def builder root = Ox::Element.new(element_name) if attributes.key? :banka element = Ox::Element.new('Banka') element << attributes[:banka] if attributes[:banka] root << element end if attributes.key? :por_cislo element = Ox::Element.new('PorCislo') element << attributes[:por_cislo] if attributes[:por_cislo] root << element end if attributes.key? :datum element = Ox::Element.new('Datum') element << attributes[:datum] if attributes[:datum] root << element end if attributes.key? :seznam_kurzu element = Ox::Element.new('SeznamKurzu') attributes[:seznam_kurzu].each { |i| element << KurzType.new(i, 'Kurz').builder } root << element end root end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.5.0 | lib/money_s3/builders/kurz_listek.rb |