Module: Dingtalk::Api::Department
- Included in:
- Client
- Defined in:
- lib/dingtalk/api/department.rb
Instance Method Summary collapse
Instance Method Details
#get_department(id) ⇒ Object
10 11 12 13 |
# File 'lib/dingtalk/api/department.rb', line 10 def get_department(id) get_url = "#{department_base_url}/get" http_get(get_url, {id: id}) end |
#list_department ⇒ Object
5 6 7 8 |
# File 'lib/dingtalk/api/department.rb', line 5 def list_department list_url = "#{department_base_url}/list" http_get(list_url) end |