Sha256: 8ac6d6fdee573d504a52f5d0de85c9a1035d9c6e051ae2e2a7d8bfa2c68ad0d5

Contents?: true

Size: 401 Bytes

Versions: 2

Compression:

Stored size: 401 Bytes

Contents

module MoneyS3
  module Parsers
    class SeznamPredkontaci
      include ParserCore::BaseParser

      def predkontace
        array_of_at(Predkontace, ['Predkontace'])
      end

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

        hash[:predkontace] = predkontace.map(&:to_h_with_attrs) if has? 'Predkontace'

        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_predkontaci.rb
money_s3-0.11.0 lib/money_s3/parsers/seznam_predkontaci.rb