Sha256: eefaedd1278ac684a26bc6f818f6b1ebaca187da80e35e929b914b5c74d3d0c2

Contents?: true

Size: 976 Bytes

Versions: 6

Compression:

Stored size: 976 Bytes

Contents

module MoneyS3
  module Builders
    class EkategorieZasobaType
      include ParserCore::BaseBuilder

      def builder
        root = Ox::Element.new(name)
        root = add_attributes_and_namespaces(root)

        root << build_element('ID', data[:id], data[:id_attributes]) if data.key? :id
        root << build_element('Name', data[:name], data[:name_attributes]) if data.key? :name
        root << build_element('Descript', data[:descript], data[:descript_attributes]) if data.key? :descript
        root << build_element('Poznamka', data[:poznamka], data[:poznamka_attributes]) if data.key? :poznamka
        root << build_element('Changed', data[:changed], data[:changed_attributes]) if data.key? :changed
        root << build_element('Public', data[:public], data[:public_attributes]) if data.key? :public
        if data.key? :parent
          root << EkategorieZasobaType.new('Parent', data[:parent]).builder
        end

        root
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/builders/ekategorie_zasoba_type.rb
money_s3-2.4.0 lib/money_s3/builders/ekategorie_zasoba_type.rb
money_s3-2.3.0 lib/money_s3/builders/ekategorie_zasoba_type.rb
money_s3-2.2.0 lib/money_s3/builders/ekategorie_zasoba_type.rb
money_s3-2.1.0 lib/money_s3/builders/ekategorie_zasoba_type.rb
money_s3-2.0.0 lib/money_s3/builders/ekategorie_zasoba_type.rb