Sha256: c94e0ef0168d00b5e1ba11cca93134003da27dbdbca7f28d9fec3538f610eafd

Contents?: true

Size: 374 Bytes

Versions: 2

Compression:

Stored size: 374 Bytes

Contents

module MoneyS3
  module Parsers
    class SeznamCinnosti
      include ParserCore::BaseParser

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

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

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

        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_cinnosti.rb
money_s3-0.11.0 lib/money_s3/parsers/seznam_cinnosti.rb