Sha256: 74adfc942657b3cb9d0df471ff9a70a49aaec675929da6a56bb1e305f4840f81

Contents?: true

Size: 1.6 KB

Versions: 4

Compression:

Stored size: 1.6 KB

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class NormPolozIDType
      include BaseParser

      def poradi
        at 'Poradi'
      end

      def popis
        at 'Popis'
      end

      def zkratka
        at 'Zkratka'
      end

      def cena
        at 'Cena'
      end

      def cena_typ
        at 'CenaTyp'
      end

      def sazba_dph
        at 'SazbaDPH'
      end

      def text_mj
        at 'TextMJ'
      end

      def pocet_mj
        at 'PocetMJ'
      end

      def pr_kont
        at 'PrKont'
      end

      def cleneni
        at 'Cleneni'
      end

      def stred
        at 'Stred'
      end

      def zakazka
        at 'Zakazka'
      end

      def cinnost
        at 'Cinnost'
      end

      def poznamka
        at 'Poznamka'
      end

      def to_h_with_attrs
        hash = HashWithAttributes.new({}, attributes)

        hash[:poradi] = poradi if has? 'Poradi'
        hash[:popis] = popis if has? 'Popis'
        hash[:zkratka] = zkratka if has? 'Zkratka'
        hash[:cena] = cena if has? 'Cena'
        hash[:cena_typ] = cena_typ if has? 'CenaTyp'
        hash[:sazba_dph] = sazba_dph if has? 'SazbaDPH'
        hash[:text_mj] = text_mj if has? 'TextMJ'
        hash[:pocet_mj] = pocet_mj if has? 'PocetMJ'
        hash[:pr_kont] = pr_kont if has? 'PrKont'
        hash[:cleneni] = cleneni if has? 'Cleneni'
        hash[:stred] = stred if has? 'Stred'
        hash[:zakazka] = zakazka if has? 'Zakazka'
        hash[:cinnost] = cinnost if has? 'Cinnost'
        hash[:poznamka] = poznamka if has? 'Poznamka'

        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/norm_poloz_id_type.rb
money_s3-0.9.0 lib/money_s3/parsers/norm_poloz_id_type.rb
money_s3-0.8.0 lib/money_s3/parsers/norm_poloz_id_type.rb
money_s3-0.7.0 lib/money_s3/parsers/norm_poloz_id_type.rb