Sha256: 7f9890801e431e5dbf0aec0d78736b1826345a1ffb01737d2cf7e78bbef49a3c
Contents?: true
Size: 805 Bytes
Versions: 5
Compression:
Stored size: 805 Bytes
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(name) if data.respond_to? :attributes data.attributes.each { |k, v| root[k] = v } end root << build_element('Banka', data[:banka]) if data.key? :banka root << build_element('PorCislo', data[:por_cislo]) if data.key? :por_cislo root << build_element('Datum', data[:datum]) if data.key? :datum if data.key? :seznam_kurzu element = Ox::Element.new('SeznamKurzu') data[:seznam_kurzu].each { |i| element << KurzType.new('Kurz', i).builder } root << element end root end end end end
Version data entries
5 entries across 5 versions & 1 rubygems