Logo white

Labbeemint / syspro-ruby

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • syspro-ruby
  • lib
  • syspro
  • business_objects
  • parsers
  • comsfm_parser.rb
  • fix tests and add better error handling to invsws
    f4259c1e
    Samuel J Clopton authored
    2019-05-24 10:25:19 -0700  
    Browse Code ยป
comsfm_parser.rb 309 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# frozen_string_literal: true

module Syspro
  module BusinessObjects
    module Parsers
      class ComsFmParser
        attr_reader :doc

        def initialize(doc)
          @doc = doc
        end

        def parse
          doc.xpath('//ErrorNumber').map(&:text)
        end
      end
    end
  end
end