Sha256: f543f9472c954f2ac9c52f6fffecb75f1928b35bf970900e0a1aff6e2b7a3494

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

module MoneyS3
  module Builders
    class EkategorieZasobaType
      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('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

1 entries across 1 versions & 1 rubygems

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