Sha256: 10bc555e6da94f436c8d0896bf30be175bdbaa855fc424218c261ad5d9b73237
Contents?: true
Size: 657 Bytes
Versions: 15
Compression:
Stored size: 657 Bytes
Contents
module Wework module Api module Methods module Department def department_create data={} post 'department/create', data end def department_update department_id, data={} post 'department/update', data.merge(id: department_id) end def department_delete department_id get 'department/delete', params: {id: department_id} end def department_list department_id=nil if department_id.nil? get 'department/list' else get 'department/list', params: {id: department_id} end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems