Sha256: 7a543ae3edf088ce5b1559300bc6a53a9bb66c7c9682b49827c1ea214f97f653

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 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_with_attrs
        hash = HashWithAttributes.new({}, attributes)

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

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