Sha256: d3445036e03935029a9f08b6337a35a940776a3caa316561dbdee1da5513beaa

Contents?: true

Size: 551 Bytes

Versions: 2

Compression:

Stored size: 551 Bytes

Contents

module MoneyS3
  module Parsers
    class Data2
      include ParserCore::BaseParser

      def fakt_vyd_dpp
        submodel_at(FakturaType, 'FaktVyd_DPP')
      end

      def fakt_prij_dpp
        submodel_at(FakturaType, 'FaktPrij_DPP')
      end

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

        hash[:fakt_vyd_dpp] = fakt_vyd_dpp.to_h_with_attrs if has? 'FaktVyd_DPP'
        hash[:fakt_prij_dpp] = fakt_prij_dpp.to_h_with_attrs if has? 'FaktPrij_DPP'

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