require 'money_s3/builders/base_builder' module MoneyS3 module Builders class PracPomer include BaseBuilder def builder root = Ox::Element.new(element_name) if attributes.key? :zkrat element = Ox::Element.new('Zkrat') element << attributes[:zkrat] if attributes[:zkrat] root << element end if attributes.key? :popis element = Ox::Element.new('Popis') element << attributes[:popis] if attributes[:popis] root << element end if attributes.key? :eldp_kod element = Ox::Element.new('ELDPKod') element << attributes[:eldp_kod] if attributes[:eldp_kod] root << element end if attributes.key? :pozn element = Ox::Element.new('Pozn') element << attributes[:pozn] if attributes[:pozn] root << element end root end end end end