Sha256: 92ea61a77221ab5628b9b42c9050ebb49ccdb866681ad59f7525a7396c929b1c

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 KB

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class UcOsnovaType
      include BaseParser

      def ucet
        at :Ucet
      end

      def nazev
        at :Nazev
      end

      def typ
        at :Typ
      end

      def saldo
        at :Saldo
      end

      def radek
        at :Radek
      end

      def uc_prev
        at :UcPrev
      end

      def pozn
        at :Pozn
      end

      def radek_zkr
        at :RadekZkr
      end

      def druh_uctu
        at :DruhUctu
      end

      def ucet_typ
        at :UcetTyp
      end

      def ucet_pod_typ
        at :UcetPodTyp
      end

      def vnitro
        at :Vnitro
      end

      def technicky
        at :Technicky
      end

      def opravky
        at :Opravky
      end

      def druh_cin
        at :DruhCin
      end

      def to_h
        { ucet: ucet,
          nazev: nazev,
          typ: typ,
          saldo: saldo,
          radek: radek,
          uc_prev: uc_prev,
          pozn: pozn,
          radek_zkr: radek_zkr,
          druh_uctu: druh_uctu,
          ucet_typ: ucet_typ,
          ucet_pod_typ: ucet_pod_typ,
          vnitro: vnitro,
          technicky: technicky,
          opravky: opravky,
          druh_cin: druh_cin
        }.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/uc_osnova_type.rb