Sha256: fe0747a7a9484c15fa2690ab6a52e99d18e921fe56927572ca2062217f32727e

Contents?: true

Size: 539 Bytes

Versions: 2

Compression:

Stored size: 539 Bytes

Contents

module MoneyS3
  module Builders
    class SkupinaKusovnikType
      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('Zkratka', data[:zkratka]) if data.key? :zkratka
        root << build_element('Nazev', data[:nazev]) if data.key? :nazev
        root << build_element('Poznamka', data[:poznamka]) if data.key? :poznamka

        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/skupina_kusovnik_type.rb
money_s3-0.11.0 lib/money_s3/builders/skupina_kusovnik_type.rb