Sha256: 071593a6f6213f5aa13c665a8912d327e1f3b193ef5ba5691fbff612873882f1

Contents?: true

Size: 916 Bytes

Versions: 1

Compression:

Stored size: 916 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class PredkontaceDEType
      include BaseParser

      def zkrat
        at 'Zkrat'
      end

      def popis
        at 'Popis'
      end

      def typ
        at 'Typ'
      end

      def poh_zak
        at 'PohZak'
      end

      def zauct_dph
        at 'ZauctDPH'
      end

      def cleneni
        at 'Cleneni'
      end

      def pozn
        at 'Pozn'
      end

      def to_h
        hash = WithAttributes.new({})
        hash.attributes = attributes

        hash[:zkrat] = zkrat if has? 'Zkrat'
        hash[:popis] = popis if has? 'Popis'
        hash[:typ] = typ if has? 'Typ'
        hash[:poh_zak] = poh_zak if has? 'PohZak'
        hash[:zauct_dph] = zauct_dph if has? 'ZauctDPH'
        hash[:cleneni] = cleneni if has? 'Cleneni'
        hash[:pozn] = pozn if has? 'Pozn'

        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/predkontace_de_type.rb