Sha256: ccd02b37157dc6429e718428236b2b3d67ff6d6393c1b2575faf7fe12b4f222c

Contents?: true

Size: 421 Bytes

Versions: 1

Compression:

Stored size: 421 Bytes

Contents

module MoneyS3
  module Builders
    class SeznamPrevodka
      include ParserCore::BaseBuilder

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

        if data.key? :prevodka
          data[:prevodka].each { |i| root << Prevodka.new('Prevodka', i).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/seznam_prevodka.rb