Sha256: fdf6642b1202836d4a19f87d505f3feeb0e0d5747161d4f3ad7a2e4b7f937f1a

Contents?: true

Size: 1.32 KB

Versions: 1

Compression:

Stored size: 1.32 KB

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class UhradaPduhrada
      include 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
        hash = WithAttributes.new({})
        hash.attributes = 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

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.6.0 lib/money_s3/parsers/uhrada_pduhrada.rb