Sha256: aa95d419a0e103bd211872ca81291e36f835cd60febfbba01f7d72e3ac03eaef

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

module MoneyS3
  module Parsers
    class SeznamProdejka
      include ParserCore::BaseParser

      def prodejka
        array_of_at(Prodejka, ['Prodejka'])
      end

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

        hash[:prodejka] = prodejka.map(&:to_h_with_attrs) if has? 'Prodejka'

        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_prodejka.rb
money_s3-0.11.0 lib/money_s3/parsers/seznam_prodejka.rb