Class: Wework::Api::Provider
- Includes:
- Methods::Provider, Cipher
- Defined in:
- lib/wework/api/provider.rb
Constant Summary
Constants included from Cipher
Cipher::BLOCK_SIZE, Cipher::CIPHER
Instance Attribute Summary collapse
-
#encoding_aes_key ⇒ Object
readonly
Returns the value of attribute encoding_aes_key.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Provider
constructor
A new instance of Provider.
Methods included from Cipher
#decrypt, #encrypt, #generate_xml, #msg_decrypt, #msg_encrypt, #pack, #signature, #unpack
Methods included from Methods::Provider
#get_login_info, #get_register_code, #get_register_url, #sso_authorize_url
Methods inherited from Base
#access_token, #get, #post, #post_file, #request, #valid?
Methods included from Methods::Batch
#batch_getresult, #batch_invite, #batch_replaceparty, #batch_replaceuser, #batch_syncuser
Methods included from Methods::Crm
Methods included from Methods::Tag
#tag_addtagusers, #tag_create, #tag_delete, #tag_deltagusers, #tag_get, #tag_list, #tag_update
Methods included from Methods::Department
#department_create, #department_delete, #department_list, #department_update
Methods included from Methods::User
#authsucc, #convert_to_openid, #convert_to_userid, #user_batchdelete, #user_create, #user_delete, #user_get, #user_list, #user_simplelist, #user_update
Methods included from Methods::Media
#get_media_url, #media_get, #media_upload
Constructor Details
#initialize(options = {}) ⇒ Provider
Returns a new instance of Provider.
9 10 11 12 13 |
# File 'lib/wework/api/provider.rb', line 9 def initialize(={}) @token = .delete(:token) @encoding_aes_key = .delete(:encoding_aes_key) super() end |
Instance Attribute Details
#encoding_aes_key ⇒ Object (readonly)
Returns the value of attribute encoding_aes_key.
7 8 9 |
# File 'lib/wework/api/provider.rb', line 7 def encoding_aes_key @encoding_aes_key end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
7 8 9 |
# File 'lib/wework/api/provider.rb', line 7 def token @token end |