Sha256: 41585c563a710395abc5d2bbad67f04472dd9e83683d2ae01dd0b8d4acd36289

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 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
        hash = WithAttributes.new({})
        hash.attributes = 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

1 entries across 1 versions & 1 rubygems

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