Sha256: 3dc72cbd9cfd69a5bdb5050815953de6e149f1435dfafaa8b2ede5bd4f5f6da8

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class Predkontace
      include 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
        hash = {}

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

        hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.5.0 lib/money_s3/parsers/predkontace.rb