Sha256: ae284c14965a3aa3672b23d99f2907dd2fff8f35ece3c8f6aaa9a4370e7a21d7

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class RozuctPolozIDType
      include BaseParser

      def popis
        at :Popis
      end

      def uc_md
        at :UcMD
      end

      def uc_d
        at :UcD
      end

      def castka
        at :Castka
      end

      def stred
        at :Stred
      end

      def zakazka
        at :Zakazka
      end

      def cinnost
        at :Cinnost
      end

      def par_sym
        at :ParSym
      end

      def par_ico
        at :ParICO
      end

      def pozn
        at :Pozn
      end

      def typ_cena
        at :TypCena
      end

      def sazba_dph
        at :SazbaDPH
      end

      def to_h
        { popis: popis,
          uc_md: uc_md,
          uc_d: uc_d,
          castka: castka,
          stred: stred,
          zakazka: zakazka,
          cinnost: cinnost,
          par_sym: par_sym,
          par_ico: par_ico,
          pozn: pozn,
          typ_cena: typ_cena,
          sazba_dph: sazba_dph
        }.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/rozuct_poloz_id_type.rb