Sha256: 1a5d07823c57a25251fc6dc519e986660d45670b5edd0b64a1b1e2ce3793f9ac

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

module MoneyS3
  module Parsers
    class SeznamDLPrij
      include ParserCore::BaseParser

      def dl_prij
        array_of_at(DLPrij, ['DLPrij'])
      end

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

        hash[:dl_prij] = dl_prij.map(&:to_h_with_attrs) if has? 'DLPrij'

        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_dl_prij.rb
money_s3-0.11.0 lib/money_s3/parsers/seznam_dl_prij.rb