Blame view

lib/syspro/api_operations/get_version.rb 378 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
  
3c0896d2   Isaac Lewis   change structs whops
17
        VersionObject = Struct.new(:version)
db76748d   Isaac Lewis   cop a bunch of St...
18
19
20
      end
    end
  end