module PaychexAPI::Client::Workers
Public Instance Methods
create_communication(worker_id, params = {})
click to toggle source
# File lib/paychex_api/client/workers.rb, line 22 def create_communication(worker_id, params = {}) post("#{API_PATH}#{WORKERS_PATH}/#{worker_id}#{COMMUNICATIONS_PATH}", params) end
delete_communication(worker_id, communication_id, params = {})
click to toggle source
# File lib/paychex_api/client/workers.rb, line 30 def delete_communication(worker_id, communication_id, params = {}) delete("#{API_PATH}#{WORKERS_PATH}/#{worker_id}#{COMMUNICATIONS_PATH}/#{communication_id}", params) end
get_all_workers(company_id, params = {})
click to toggle source
# File lib/paychex_api/client/workers.rb, line 4 def get_all_workers(company_id, params = {}) connection.headers[:accept] = "application/json;profile='http://api.paychex.com/profiles/workers_users/nonpii/v1'" get("#{API_PATH}#{COMPANIES_PATH}/#{company_id}#{WORKERS_PATH}", params) end
get_communication(worker_id, communication_id, params = {})
click to toggle source
# File lib/paychex_api/client/workers.rb, line 18 def get_communication(worker_id, communication_id, params = {}) get("#{API_PATH}#{WORKERS_PATH}/#{worker_id}#{COMMUNICATIONS_PATH}/#{communication_id}", params) end
get_communications(worker_id, params = {})
click to toggle source
# File lib/paychex_api/client/workers.rb, line 14 def get_communications(worker_id, params = {}) get("#{API_PATH}#{WORKERS_PATH}/#{worker_id}#{COMMUNICATIONS_PATH}", params) end
get_worker(worker_id, params = {})
click to toggle source
# File lib/paychex_api/client/workers.rb, line 9 def get_worker(worker_id, params = {}) connection.headers[:accept] = "application/json;profile='http://api.paychex.com/profiles/worker/nonpii_communications/v1'" get("#{API_PATH}#{WORKERS_PATH}/#{worker_id}", params) end
get_worker_user(worker_id, params = {})
click to toggle source
# File lib/paychex_api/client/workers.rb, line 34 def get_worker_user(worker_id, params = {}) connection.headers[:accept] = "application/json;profile='http://api.paychex.com/profiles/users/v1'" get("#{API_PATH}#{WORKERS_PATH}/#{worker_id}/users", params) end
update_communication(worker_id, communication_id, params = {})
click to toggle source
# File lib/paychex_api/client/workers.rb, line 26 def update_communication(worker_id, communication_id, params = {}) put("#{API_PATH}#{WORKERS_PATH}/#{worker_id}#{COMMUNICATIONS_PATH}/#{communication_id}", params) end