Sha256: c50527289c87d8e7df7a0aa2bfcad5a71528d7f0ffe8a251d84ccb7966651ae9

Contents?: true

Size: 335 Bytes

Versions: 7

Compression:

Stored size: 335 Bytes

Contents

module MoneyS3
  module Parsers
    class SeznamZasoba
      include ParserCore::BaseParser

      def zasoba
        array_of_at(Zasoba, ['Zasoba'])
      end

      def to_h
        hash = {}
        hash[:attributes] = attributes

        hash[:zasoba] = zasoba.map(&:to_h) if has? 'Zasoba'

        hash
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/parsers/seznam_zasoba.rb
money_s3-2.4.0 lib/money_s3/parsers/seznam_zasoba.rb
money_s3-2.3.0 lib/money_s3/parsers/seznam_zasoba.rb
money_s3-2.2.0 lib/money_s3/parsers/seznam_zasoba.rb
money_s3-2.1.0 lib/money_s3/parsers/seznam_zasoba.rb
money_s3-2.0.0 lib/money_s3/parsers/seznam_zasoba.rb
money_s3-1.0.0 lib/money_s3/parsers/seznam_zasoba.rb