Module: PaychexAPI::Client::Workers
- Defined in:
- lib/paychex_api/client/workers.rb
Instance Method Summary collapse
- #create_communication(worker_id, params = {}) ⇒ Object
- #delete_communication(worker_id, communication_id, params = {}) ⇒ Object
- #get_all_workers(company_id, params = {}) ⇒ Object
- #get_communication(worker_id, communication_id, params = {}) ⇒ Object
- #get_communications(worker_id, params = {}) ⇒ Object
- #update_communication(worker_id, communication_id, params = {}) ⇒ Object
Instance Method Details
#create_communication(worker_id, params = {}) ⇒ Object
17 18 19 |
# File 'lib/paychex_api/client/workers.rb', line 17 def create_communication(worker_id, params = {}) post("#{API_PATH}#{WORKERS_PATH}/#{worker_id}#{COMMUNICATIONS_PATH}", params) end |
#delete_communication(worker_id, communication_id, params = {}) ⇒ Object
25 26 27 |
# File 'lib/paychex_api/client/workers.rb', line 25 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 = {}) ⇒ Object
5 6 7 |
# File 'lib/paychex_api/client/workers.rb', line 5 def get_all_workers(company_id, params = {}) get("#{API_PATH}#{COMPANIES_PATH}/#{company_id}#{WORKERS_PATH}", params) end |
#get_communication(worker_id, communication_id, params = {}) ⇒ Object
13 14 15 |
# File 'lib/paychex_api/client/workers.rb', line 13 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 = {}) ⇒ Object
9 10 11 |
# File 'lib/paychex_api/client/workers.rb', line 9 def get_communications(worker_id, params = {}) get("#{API_PATH}#{WORKERS_PATH}/#{worker_id}#{COMMUNICATIONS_PATH}", params) end |
#update_communication(worker_id, communication_id, params = {}) ⇒ Object
21 22 23 |
# File 'lib/paychex_api/client/workers.rb', line 21 def update_communication(worker_id, communication_id, params = {}) put("#{API_PATH}#{WORKERS_PATH}/#{worker_id}#{COMMUNICATIONS_PATH}/#{communication_id}", params) end |