Module: BridgeAPI::Client::Manager
- Defined in:
- lib/bridge_api/client/manager.rb
Instance Method Summary collapse
- #get_all_managers(params = {}) ⇒ Object
- #get_manager_direct_reports(manager_id, params = {}) ⇒ Object
Instance Method Details
#get_all_managers(params = {}) ⇒ Object
6 7 8 |
# File 'lib/bridge_api/client/manager.rb', line 6 def get_all_managers(params = {}) get("#{API_PATH}#{AUTHOR_PATH}#{MANAGER_PATH}", params) end |
#get_manager_direct_reports(manager_id, params = {}) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/bridge_api/client/manager.rb', line 10 def get_manager_direct_reports(manager_id, params = {}) path = "#{API_PATH}#{AUTHOR_PATH}#{MANAGER_PATH}/#{manager_id}/direct_reports" RESULT_MAPPING[path] = { primary: 'direct_reports', meta: %w[manager_id direct_reports_count] } get(path, params) end |