Sha256: cc6339e7e695b71d6ec576c553929122ded823c21d6d17b4a5838bdc0661d244

Contents?: true

Size: 1 KB

Versions: 4

Compression:

Stored size: 1 KB

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class TypPriplatkuType
      include BaseParser

      def zkratka
        at 'Zkratka'
      end

      def popis
        at 'Popis'
      end

      def poznamka
        at 'Poznamka'
      end

      def druh
        at 'Druh'
      end

      def sazba
        at 'Sazba'
      end

      def typ
        at 'Typ'
      end

      def auto_load
        at 'AutoLoad'
      end

      def pr_nah_off
        at 'PrNahOff'
      end

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

        hash[:zkratka] = zkratka if has? 'Zkratka'
        hash[:popis] = popis if has? 'Popis'
        hash[:poznamka] = poznamka if has? 'Poznamka'
        hash[:druh] = druh if has? 'Druh'
        hash[:sazba] = sazba if has? 'Sazba'
        hash[:typ] = typ if has? 'Typ'
        hash[:auto_load] = auto_load if has? 'AutoLoad'
        hash[:pr_nah_off] = pr_nah_off if has? 'PrNahOff'

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