Sha256: 8dc18ad1d181235c91e51263f3c4cd9415b22d2a6056a2ce3f8d4dab1b9aa3a9

Contents?: true

Size: 961 Bytes

Versions: 1

Compression:

Stored size: 961 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class ClenDPH
      include BaseParser

      def zkrat
        at :Zkrat
      end

      def datum_od
        at :DatumOd
      end

      def popis
        at :Popis
      end

      def typ
        at :Typ
      end

      def kolonka
        at :Kolonka
      end

      def kod_plneni
        at :KodPlneni
      end

      def bez_odpoctu
        at :BezOdpoctu
      end

      def no_koef
        at :NoKoef
      end

      def majetek
        at :Majetek
      end

      def pozn
        at :Pozn
      end

      def to_h
        { zkrat: zkrat,
          datum_od: datum_od,
          popis: popis,
          typ: typ,
          kolonka: kolonka,
          kod_plneni: kod_plneni,
          bez_odpoctu: bez_odpoctu,
          no_koef: no_koef,
          majetek: majetek,
          pozn: pozn
        }.delete_if { |k, v| v.nil? || v.empty? }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.4.0 lib/money_s3/parsers/clen_dph.rb