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

Version Path
wework-1.2.8 lib/wework/api/methods/department.rb
wework-1.2.5 lib/wework/api/methods/department.rb
wework-1.2.3 lib/wework/api/methods/department.rb
wework-1.2.2 lib/wework/api/methods/department.rb
wework-1.2.1 lib/wework/api/methods/department.rb
wework-1.2.0 lib/wework/api/methods/department.rb
wework-1.1.9 lib/wework/api/methods/department.rb
wework-1.1.8 lib/wework/api/methods/department.rb
wework-1.1.7 lib/wework/api/methods/department.rb
wework-1.1.6 lib/wework/api/methods/department.rb
wework-1.1.5 lib/wework/api/methods/department.rb
wework-1.1.3 lib/wework/api/methods/department.rb
wework-1.1.2 lib/wework/api/methods/department.rb
wework-1.1.1 lib/wework/api/methods/department.rb
wework-1.1.0 lib/wework/api/methods/department.rb