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
- #get_worker(worker_id, params = {}) ⇒ Object
- #update_communication(worker_id, communication_id, params = {}) ⇒ Object
Instance Method Details
#create_communication(worker_id, params = {}) ⇒ Object
20 21 22 |
# File 'lib/paychex_api/client/workers.rb', line 20 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
28 29 30 |
# File 'lib/paychex_api/client/workers.rb', line 28 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
4 5 6 |
# File 'lib/paychex_api/client/workers.rb', line 4 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
16 17 18 |
# File 'lib/paychex_api/client/workers.rb', line 16 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
12 13 14 |
# File 'lib/paychex_api/client/workers.rb', line 12 def get_communications(worker_id, params = {}) get("#{API_PATH}#{WORKERS_PATH}/#{worker_id}#{COMMUNICATIONS_PATH}", params) end |
#get_worker(worker_id, params = {}) ⇒ Object
8 9 10 |
# File 'lib/paychex_api/client/workers.rb', line 8 def get_worker(worker_id, params = {}) get("#{API_PATH}#{WORKERS_PATH}/#{worker_id}", params) end |
#update_communication(worker_id, communication_id, params = {}) ⇒ Object
24 25 26 |
# File 'lib/paychex_api/client/workers.rb', line 24 def update_communication(worker_id, communication_id, params = {}) put("#{API_PATH}#{WORKERS_PATH}/#{worker_id}#{COMMUNICATIONS_PATH}/#{communication_id}", params) end |