Sha256: 3d2ff9228ad45c97de63e38dff9bec51617d69df41df45c7144ac71a6067466e

Contents?: true

Size: 530 Bytes

Versions: 2

Compression:

Stored size: 530 Bytes

Contents

module MoneyS3
  module Builders
    class Reference
      include ParserCore::BaseBuilder

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

        if data.key? :typ_kusovnik
          root << KusovnikType.new('TypKusovnik', data[:typ_kusovnik]).builder
        end
        if data.key? :vzor
          root << VzorKomponentaType.new('Vzor', data[:vzor]).builder
        end

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