Blame view

lib/syspro/business_objects/parsers/comsfm_parser.rb 330 Bytes
d9a9cb5d   chadzink   Add portoi and co...
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
            error_numbers = doc.xpath("//ErrorNumber").map{|e| e.text}
          end
        end
      end
    end
  end