Sha256: b3ac97cfd507e02d72465611a1c2e42e19de6bccdfaa7ae6d67aac1122f15614

Contents?: true

Size: 509 Bytes

Versions: 1

Compression:

Stored size: 509 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
        hash = {}
        hash[:attributes] = attributes

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

        hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-1.0.0 lib/money_s3/parsers/data2.rb