Class: Wechat::Api::Work

Inherits:
Base
  • Object
show all
Includes:
Agent, Menu, User
Defined in:
app/apis/wechat/api/work.rb

Defined Under Namespace

Modules: Agent, Menu, User

Constant Summary

Constants included from User

User::BASE

Constants included from Menu

Menu::BASE

Constants included from Agent

Agent::BASE

Instance Attribute Summary

Attributes inherited from Base

#app, #client

Instance Method Summary collapse

Methods included from User

#batch_job_result, #batch_replaceparty, #batch_replaceuser, #batch_syncuser, #convert_to_openid, #department, #department_create, #department_delete, #department_update, #getuserinfo, #invite_user, #tag, #tag_add_user, #tag_create, #tag_del_user, #tag_delete, #tag_update, #tags, #user, #user_auth_success, #user_batchdelete, #user_create, #user_delete, #user_list, #user_simplelist, #user_update

Methods included from Menu

#custom_message_send, #material, #material_add, #material_count, #material_delete, #material_list, #menu, #menu_create, #menu_delete, #message_send

Methods included from Agent

#agent, #agent_list, #checkin, #jsapi_ticket, #token

Methods inherited from Base

#get, #post, #post_file

Constructor Details

#initialize(app) ⇒ Work

Returns a new instance of Work.



8
9
10
11
# File 'app/apis/wechat/api/work.rb', line 8

def initialize(app)
  super
  @agentid = app.agentid
end