Blame view

lib/syspro/syspro_client.rb 431 Bytes
51fb5579   Isaac Lewis   add client test, ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  module Syspro
    class SysproClient
      def initialize(conn = nil)
        self.conn = conn || self.class.default_conn
        @system_profiler = SystemProfiler.new
      end
  
      def self.active_client
        Thread.current[:syspro_client] || default_client
      end
  
      def self.default_client
        Thread.current[:syspro_client_default_client] ||= SysproClient.new(default_conn)
      end
  
      def get_syspro_version
  
      end
    end
  end