Sha256: a6913c0fba82d9041b780886b5aa6285e407c59c64a10318ea5b550dfe8c6972
Contents?: true
Size: 1.47 KB
Versions: 1
Compression:
Stored size: 1.47 KB
Contents
require 'money_s3/builders/base_builder' require 'money_s3/builders/km_karta_type' require 'money_s3/builders/sklad_type' module MoneyS3 module Builders class AlternativaPrislusenstviType include BaseBuilder def builder root = Ox::Element.new(element_name) if attributes.key? :popis element = Ox::Element.new('Popis') element << attributes[:popis] if attributes[:popis] root << element end if attributes.key? :poc_mj element = Ox::Element.new('PocMJ') element << attributes[:poc_mj] if attributes[:poc_mj] root << element end if attributes.key? :poradi element = Ox::Element.new('Poradi') element << attributes[:poradi] if attributes[:poradi] root << element end if attributes.key? :druh_komp element = Ox::Element.new('DruhKomp') element << attributes[:druh_komp] if attributes[:druh_komp] root << element end if attributes.key? :symetric element = Ox::Element.new('Symetric') element << attributes[:symetric] if attributes[:symetric] root << element end if attributes.key? :km_karta root << KmKartaType.new(attributes[:km_karta], 'KmKarta').builder end if attributes.key? :sklad root << SkladType.new(attributes[:sklad], 'Sklad').builder 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/alternativa_prislusenstvi_type.rb |