Sha256: e957ecabd9549f2ad065f0040691c601380b75119592ac80b70f40872879ccf2

Contents?: true

Size: 521 Bytes

Versions: 2

Compression:

Stored size: 521 Bytes

Contents

module MoneyS3
  module Parsers
    class PreprDoplnUdajType
      include ParserCore::BaseParser

      def zkrat
        at 'Zkrat'
      end

      def popis
        at 'Popis'
      end

      def poznamka
        at 'Poznamka'
      end

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

        hash[:zkrat] = zkrat if has? 'Zkrat'
        hash[:popis] = popis if has? 'Popis'
        hash[:poznamka] = poznamka if has? 'Poznamka'

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