Blame view

lib/syspro/api_operations/get_version.rb 391 Bytes
db76748d   Isaac Lewis   cop a bunch of St...
1
2
3
4
5
6
7
  require_relative "request"
  
  module Syspro
    module ApiOperations
      class GetVersion
        include ApiOperations::Request
  
49716587   Isaac Lewis   refactor object s...
8
9
10
11
12
        def get_version
          resp = self.request(:get, resource_url)
          version = VersionObject.new(resp[0].http_body)
        end
  
db76748d   Isaac Lewis   cop a bunch of St...
13
14
15
        def resource_url
          "/GetVersion"
        end
49716587   Isaac Lewis   refactor object s...
16
17
18
  
        VersionObject = Struct.new(:version) do
        end
db76748d   Isaac Lewis   cop a bunch of St...
19
20
21
      end
    end
  end