Sha256: f81f6800dae536e6389fa8953bdc2df07b67baf104e166a81a6d2a3bd9eb771b

Contents?: true

Size: 390 Bytes

Versions: 2

Compression:

Stored size: 390 Bytes

Contents

module MoneyS3
  module Parsers
    class SeznamInvDokl
      include ParserCore::BaseParser

      def inv_doklad
        array_of_at(InvDoklType, ['InvDoklad'])
      end

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

        hash[:inv_doklad] = inv_doklad.map(&:to_h_with_attrs) if has? 'InvDoklad'

        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_inv_dokl.rb
money_s3-0.11.0 lib/money_s3/parsers/seznam_inv_dokl.rb