Sha256: 0c93bf795c68254f6fcd8b6117293181e7d02ac7a6176166588c9dd5621f0ae0

Contents?: true

Size: 513 Bytes

Versions: 2

Compression:

Stored size: 513 Bytes

Contents

module MoneyS3
  module Builders
    class CinnostType
      include ParserCore::BaseBuilder

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

        root << build_element('Zkrat', data[:zkrat]) if data.key? :zkrat
        root << build_element('Nazev', data[:nazev]) if data.key? :nazev
        root << build_element('Pozn', data[:pozn]) if data.key? :pozn

        root
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
money_s3-0.12.0 lib/money_s3/builders/cinnost_type.rb
money_s3-0.11.0 lib/money_s3/builders/cinnost_type.rb