Sha256: 8729b9f2fe7d46e6e3d17e0f28187c66be49a5d10eaa2a5f8861c5758c5693f7

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

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
        hash = {}

        hash[:uc_prodejk] = uc_prodejk if raw.key? :UcProdejk
        hash[:uc_prijemk] = uc_prijemk if raw.key? :UcPrijemk
        hash[:uc_vydejky] = uc_vydejky if raw.key? :UcVydejky
        hash[:uc_vyrobky] = uc_vyrobky if raw.key? :UcVyrobky
        hash[:uc_v_dod_lst] = uc_v_dod_lst if raw.key? :UcVDodLst
        hash[:uc_p_dod_lst] = uc_p_dod_lst if raw.key? :UcPDodLst
        hash[:uc_manko] = uc_manko if raw.key? :UcManko
        hash[:uc_preb] = uc_preb if raw.key? :UcPreb

        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/ucty_pohybu_type.rb