Sha256: ab66ae808af62da7c23a487ac1407f97bedc4fbe78bd97af921755d6e3c8b8e4
Contents?: true
Size: 766 Bytes
Versions: 2
Compression:
Stored size: 766 Bytes
Contents
module MoneyS3 module Builders class KusovnikType include ParserCore::BaseBuilder def builder root = Ox::Element.new(name) if data.respond_to? :attributes data.attributes.each { |k, v| root[k] = v } end if data.key? :header root << HeaderKusovnikType.new('Header', data[:header]).builder end if data.key? :child root << ChildKusovnikType.new('Child', data[:child]).builder end if data.key? :seznam_komponent element = Ox::Element.new('SeznamKomponent') data[:seznam_komponent].each { |i| element << KomponentaKusovnikType.new('Komponenta', i).builder } root << element end root end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.12.0 | lib/money_s3/builders/kusovnik_type.rb |
money_s3-0.11.0 | lib/money_s3/builders/kusovnik_type.rb |