Sha256: 08637a3cc8af2906ce7f3edf56c6fd6dae7f4b21f98add2c33363433a5f169de

Contents?: true

Size: 1.29 KB

Versions: 2

Compression:

Stored size: 1.29 KB

Contents

module MoneyS3
  module Parsers
    class UhradaPduhrada
      include ParserCore::BaseParser

      def poradi
        at 'Poradi'
      end

      def kontace
        at 'Kontace'
      end

      def stredisko
        at 'Stredisko'
      end

      def zakazka
        at 'Zakazka'
      end

      def cinnost
        at 'Cinnost'
      end

      def zaklad
        at 'Zaklad'
      end

      def dphzs
        at 'DPHZS'
      end

      def dphss
        at 'DPHSS'
      end

      def wl_zaklady
        at 'WLZaklady'
      end

      def wldph1
        at 'WLDPH1'
      end

      def wldph2
        at 'WLDPH2'
      end

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

        hash[:poradi] = poradi if has? 'Poradi'
        hash[:kontace] = kontace if has? 'Kontace'
        hash[:stredisko] = stredisko if has? 'Stredisko'
        hash[:zakazka] = zakazka if has? 'Zakazka'
        hash[:cinnost] = cinnost if has? 'Cinnost'
        hash[:zaklad] = zaklad if has? 'Zaklad'
        hash[:dphzs] = dphzs if has? 'DPHZS'
        hash[:dphss] = dphss if has? 'DPHSS'
        hash[:wl_zaklady] = wl_zaklady if has? 'WLZaklady'
        hash[:wldph1] = wldph1 if has? 'WLDPH1'
        hash[:wldph2] = wldph2 if has? 'WLDPH2'

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