Sha256: 07a86c0a1b81f6200f6c470b53ff2b2ba41ef4f99e4f1e06d292d0fe789857b1

Contents?: true

Size: 1.36 KB

Versions: 2

Compression:

Stored size: 1.36 KB

Contents

module MoneyS3
  module Parsers
    class PredkontaceType
      include ParserCore::BaseParser

      def zkrat
        at 'Zkrat'
      end

      def typ
        at 'Typ'
      end

      def popis
        at 'Popis'
      end

      def uc_md
        at 'UcMD'
      end

      def uc_d
        at 'UcD'
      end

      def zauct_dph
        at 'ZauctDPH'
      end

      def uctovat_led
        at 'UctovatLed'
      end

      def typ_ceny
        at 'TypCeny'
      end

      def uc_led_md
        at 'UcLedMD'
      end

      def uc_led_d
        at 'UcLedD'
      end

      def cleneni
        at 'Cleneni'
      end

      def pozn
        at 'Pozn'
      end

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

        hash[:zkrat] = zkrat if has? 'Zkrat'
        hash[:typ] = typ if has? 'Typ'
        hash[:popis] = popis if has? 'Popis'
        hash[:uc_md] = uc_md if has? 'UcMD'
        hash[:uc_d] = uc_d if has? 'UcD'
        hash[:zauct_dph] = zauct_dph if has? 'ZauctDPH'
        hash[:uctovat_led] = uctovat_led if has? 'UctovatLed'
        hash[:typ_ceny] = typ_ceny if has? 'TypCeny'
        hash[:uc_led_md] = uc_led_md if has? 'UcLedMD'
        hash[:uc_led_d] = uc_led_d if has? 'UcLedD'
        hash[:cleneni] = cleneni if has? 'Cleneni'
        hash[:pozn] = pozn if has? 'Pozn'

        hash
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
money_s3-0.12.0 lib/money_s3/parsers/predkontace_type.rb
money_s3-0.11.0 lib/money_s3/parsers/predkontace_type.rb