Sha256: 67055f9916d855fe2feaa7d53c3443bb1e67955e862cc51b0335b1d81b949756

Contents?: true

Size: 524 Bytes

Versions: 1

Compression:

Stored size: 524 Bytes

Contents

module MoneyS3
  module Builders
    class DefSubPolType
      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('MJNaSadu', data[:mj_na_sadu], data[:mj_na_sadu_attributes]) if data.key? :mj_na_sadu
        if data.key? :polozka
          root << PolSklDoklType.new('Polozka', data[:polozka]).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/def_sub_pol_type.rb