get_version.rb 282 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 module Syspro class GetVersion < ApiResource def self.get_version resp = self.request(:get, resource_url) version = VersionObject.new(resp[0].http_body) end def resource_url "/GetVersion" end VersionObject = Struct.new(:version) end end