Sha256: b34fb7f8d813c47020f36f3d9f945fbe9db690905908805fdf2507cdc5207ff4

Contents?: true

Size: 383 Bytes

Versions: 2

Compression:

Stored size: 383 Bytes

Contents

module MoneyS3
  module Parsers
    class SeznamFaktPrij
      include ParserCore::BaseParser

      def fakt_prij
        array_of_at(FaktPrij, ['FaktPrij'])
      end

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

        hash[:fakt_prij] = fakt_prij.map(&:to_h_with_attrs) if has? 'FaktPrij'

        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_fakt_prij.rb
money_s3-0.11.0 lib/money_s3/parsers/seznam_fakt_prij.rb