Blame view

lib/syspro/get_version.rb 282 Bytes
db76748d   Isaac Lewis   cop a bunch of St...
1
  module Syspro
3d0157a5   Isaac Lewis   add logoff
2
3
4
5
6
    class GetVersion < ApiResource
      def self.get_version
        resp = self.request(:get, resource_url)
        version = VersionObject.new(resp[0].http_body)
      end
49716587   Isaac Lewis   refactor object s...
7
  
3d0157a5   Isaac Lewis   add logoff
8
9
      def resource_url
        "/GetVersion"
db76748d   Isaac Lewis   cop a bunch of St...
10
      end
3d0157a5   Isaac Lewis   add logoff
11
12
  
      VersionObject = Struct.new(:version)
db76748d   Isaac Lewis   cop a bunch of St...
13
14
    end
  end