Sha256: 1967b22a6ef17259a84829999e8d48c65f916946253897f86685ac2de31a6d31

Contents?: true

Size: 1.37 KB

Versions: 4

Compression:

Stored size: 1.37 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_with_attrs
        hash = HashWithAttributes.new({}, attributes)

        hash[:popis] = popis if has? 'Popis'
        hash[:uc_md] = uc_md if has? 'UcMD'
        hash[:uc_d] = uc_d if has? 'UcD'
        hash[:castka] = castka if has? 'Castka'
        hash[:stred] = stred if has? 'Stred'
        hash[:zakazka] = zakazka if has? 'Zakazka'
        hash[:cinnost] = cinnost if has? 'Cinnost'
        hash[:par_sym] = par_sym if has? 'ParSym'
        hash[:par_ico] = par_ico if has? 'ParICO'
        hash[:pozn] = pozn if has? 'Pozn'
        hash[:typ_cena] = typ_cena if has? 'TypCena'
        hash[:sazba_dph] = sazba_dph if has? 'SazbaDPH'

        hash
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
money_s3-0.10.0 lib/money_s3/parsers/rozuct_poloz_id_type.rb
money_s3-0.9.0 lib/money_s3/parsers/rozuct_poloz_id_type.rb
money_s3-0.8.0 lib/money_s3/parsers/rozuct_poloz_id_type.rb
money_s3-0.7.0 lib/money_s3/parsers/rozuct_poloz_id_type.rb