Sha256: 9d3596f7c136697b5bd26e765200e5547fe81149dfb3dbd980ae20a50000a640

Contents?: true

Size: 816 Bytes

Versions: 1

Compression:

Stored size: 816 Bytes

Contents

module MoneyS3
  module Builders
    class KurzRozd
      include ParserCore::BaseBuilder

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

        root << build_element('Typ', data[:typ], data[:typ_attributes]) if data.key? :typ
        root << build_element('Preceneni', data[:preceneni], data[:preceneni_attributes]) if data.key? :preceneni
        root << build_element('Castka', data[:castka], data[:castka_attributes]) if data.key? :castka
        root << build_element('KRPoradi', data[:kr_poradi], data[:kr_poradi_attributes]) if data.key? :kr_poradi
        if data.key? :doklad
          root << DoklRefType.new('Doklad', data[:doklad]).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/kurz_rozd.rb