Sha256: 070d32578533cd2384c50defb7848684e8bdd1f44bcf06230986d0a4f72c683c

Contents?: true

Size: 921 Bytes

Versions: 7

Compression:

Stored size: 921 Bytes

Contents

module MoneyS3
  module Parsers
    class PreprDoplnUdajType
      include ParserCore::BaseParser

      def zkrat
        at 'Zkrat'
      end

      def zkrat_attributes
        attributes_at 'Zkrat'
      end

      def popis
        at 'Popis'
      end

      def popis_attributes
        attributes_at 'Popis'
      end

      def poznamka
        at 'Poznamka'
      end

      def poznamka_attributes
        attributes_at 'Poznamka'
      end

      def to_h
        hash = {}
        hash[:attributes] = attributes

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

        hash
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/parsers/prepr_dopln_udaj_type.rb
money_s3-2.4.0 lib/money_s3/parsers/prepr_dopln_udaj_type.rb
money_s3-2.3.0 lib/money_s3/parsers/prepr_dopln_udaj_type.rb
money_s3-2.2.0 lib/money_s3/parsers/prepr_dopln_udaj_type.rb
money_s3-2.1.0 lib/money_s3/parsers/prepr_dopln_udaj_type.rb
money_s3-2.0.0 lib/money_s3/parsers/prepr_dopln_udaj_type.rb
money_s3-1.0.0 lib/money_s3/parsers/prepr_dopln_udaj_type.rb