Sha256: 3e0e339ba82c28a7377da2dfee78cb7b15fe694454ee99a2009987e62fbaeb98

Contents?: true

Size: 383 Bytes

Versions: 2

Compression:

Stored size: 383 Bytes

Contents

module MoneyS3
  module Parsers
    class SeznamPoptPrij
      include ParserCore::BaseParser

      def popt_prij
        array_of_at(PoptPrij, ['PoptPrij'])
      end

      def to_h_with_attrs
        hash = ParserCore::HashWithAttributes.new({}, attributes)

        hash[:popt_prij] = popt_prij.map(&:to_h_with_attrs) if has? 'PoptPrij'

        hash
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
money_s3-0.12.0 lib/money_s3/parsers/seznam_popt_prij.rb
money_s3-0.11.0 lib/money_s3/parsers/seznam_popt_prij.rb