1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
module Syspro class Logoff < ApiResource def self.logoff(user_id) params = { "UserId" => user_id } resp = self.request(:get, resource_url, params) if resp[0].http_body == "0" true else resp[0].http_body end end def resource_url "/Logoff" end end end