Sha256: eed9594b34d2b9eb7880f0458f122cd049499af9201953e74abba2cd2ccf3516

Contents?: true

Size: 343 Bytes

Versions: 7

Compression:

Stored size: 343 Bytes

Contents

module MoneyS3
  module Parsers
    class SeznamCinnosti
      include ParserCore::BaseParser

      def cinnost
        array_of_at(Cinnost, ['Cinnost'])
      end

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

        hash[:cinnost] = cinnost.map(&:to_h) if has? 'Cinnost'

        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_cinnosti.rb
money_s3-2.4.0 lib/money_s3/parsers/seznam_cinnosti.rb
money_s3-2.3.0 lib/money_s3/parsers/seznam_cinnosti.rb
money_s3-2.2.0 lib/money_s3/parsers/seznam_cinnosti.rb
money_s3-2.1.0 lib/money_s3/parsers/seznam_cinnosti.rb
money_s3-2.0.0 lib/money_s3/parsers/seznam_cinnosti.rb
money_s3-1.0.0 lib/money_s3/parsers/seznam_cinnosti.rb