Sha256: 718479dc1835a30debf00dd9291147125a96ad7711a130b39bb36b41d2db6a1e

Contents?: true

Size: 575 Bytes

Versions: 4

Compression:

Stored size: 575 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/typ_priplatku_type'

module MoneyS3
  module Parsers
    class MzPriplatek
      include BaseParser

      def prip_hodin
        at 'PripHodin'
      end

      def typ_priplatku
        submodel_at(TypPriplatkuType, 'TypPriplatku')
      end

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

        hash[:prip_hodin] = prip_hodin if has? 'PripHodin'
        hash[:typ_priplatku] = typ_priplatku.to_h_with_attrs if has? 'TypPriplatku'

        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/mz_priplatek.rb
money_s3-0.9.0 lib/money_s3/parsers/mz_priplatek.rb
money_s3-0.8.0 lib/money_s3/parsers/mz_priplatek.rb
money_s3-0.7.0 lib/money_s3/parsers/mz_priplatek.rb