Blame view

lib/syspro/get_version.rb 272 Bytes
db76748d   Isaac Lewis   cop a bunch of St...
1
  module Syspro
3d0157a5   Isaac Lewis   add logoff
2
3
4
    class GetVersion < ApiResource
      def self.get_version
        resp = self.request(:get, resource_url)
697a8854   Isaac Lewis   update tests
5
        VersionObject.new(resp[0].http_body)
3d0157a5   Isaac Lewis   add logoff
6
      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