Sha256: faccf41e351e465963713598fd841f80d0335c8437b7779e0b7f0eeb6bb7e487

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

module MoneyS3
  module Builders
    class Reference
      include ParserCore::BaseBuilder

      def builder
        root = Ox::Element.new(name)
        if data.key? :attributes
          data[:attributes].each { |k, v| root[k] = v }
        end

        if data.key? :typ_kusovnik
          root << KusovnikType.new('TypKusovnik', data[:typ_kusovnik]).builder
        end
        if data.key? :vzor
          root << VzorKomponentaType.new('Vzor', data[:vzor]).builder
        end

        root
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-1.0.0 lib/money_s3/builders/reference.rb