require 'money_s3/builders/base_builder' module MoneyS3 module Builders class Cinnost 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? :nazev element = Ox::Element.new('Nazev') element << attributes[:nazev] if attributes[:nazev] 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