Sha256: 96822574f6237dd0819fb5b0f95c99d29501159174501b67e66ef06fed9ab716

Contents?: true

Size: 829 Bytes

Versions: 1

Compression:

Stored size: 829 Bytes

Contents

require 'money_s3/builders/base_builder'
require 'money_s3/builders/ekategorie_zasoba_type'

module MoneyS3
  module Builders
    class EkategorieZasobaType
      include BaseBuilder

      attr_accessor :id, :name, :descript, :poznamka, :changed, :public, :parent

      def builder
        root = Ox::Element.new(element_name)

        root << (Ox::Element.new('ID') << id) if id
        root << (Ox::Element.new('Name') << name) if name
        root << (Ox::Element.new('Descript') << descript) if descript
        root << (Ox::Element.new('Poznamka') << poznamka) if poznamka
        root << (Ox::Element.new('Changed') << changed) if changed
        root << (Ox::Element.new('Public') << public) if public
        root << EkategorieZasobaType.new(parent, 'Parent').builder if parent

        root
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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