Sha256: 82f7a1124ff2e498eea2504a78558ce5d9259efe9912b5ce4a6a1fdc7204a616

Contents?: true

Size: 910 Bytes

Versions: 1

Compression:

Stored size: 910 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class UctyPohybuType
      include BaseParser

      def uc_prodejk
        at :UcProdejk
      end

      def uc_prijemk
        at :UcPrijemk
      end

      def uc_vydejky
        at :UcVydejky
      end

      def uc_vyrobky
        at :UcVyrobky
      end

      def uc_v_dod_lst
        at :UcVDodLst
      end

      def uc_p_dod_lst
        at :UcPDodLst
      end

      def uc_manko
        at :UcManko
      end

      def uc_preb
        at :UcPreb
      end

      def to_h
        { uc_prodejk: uc_prodejk,
          uc_prijemk: uc_prijemk,
          uc_vydejky: uc_vydejky,
          uc_vyrobky: uc_vyrobky,
          uc_v_dod_lst: uc_v_dod_lst,
          uc_p_dod_lst: uc_p_dod_lst,
          uc_manko: uc_manko,
          uc_preb: uc_preb
        }.delete_if { |k, v| v.nil? || v.empty? }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.4.0 lib/money_s3/parsers/ucty_pohybu_type.rb