Sha256: d08d7accad6b55c66d79621b43b2771448d76869692936847a370c1e7606c445

Contents?: true

Size: 436 Bytes

Versions: 4

Compression:

Stored size: 436 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/fakt_prij'

module MoneyS3
  module Parsers
    class SeznamFaktPrij
      include BaseParser

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

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

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

        hash
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
money_s3-0.10.0 lib/money_s3/parsers/seznam_fakt_prij.rb
money_s3-0.9.0 lib/money_s3/parsers/seznam_fakt_prij.rb
money_s3-0.8.0 lib/money_s3/parsers/seznam_fakt_prij.rb
money_s3-0.7.0 lib/money_s3/parsers/seznam_fakt_prij.rb