Sha256: 6dabe896985e76bae7694d85b780821cd8a8786c3d2df5bf5f157178f6346cc9

Contents?: true

Size: 906 Bytes

Versions: 4

Compression:

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

4 entries across 4 versions & 1 rubygems

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