Class: Wework::Api::Corp
- Includes:
- Methods::Department, Methods::User, Cipher
- Defined in:
- lib/wework/api/corp.rb
Constant Summary
Constants included from Cipher
Cipher::BLOCK_SIZE, Cipher::CIPHER
Instance Attribute Summary collapse
-
#permanent_code ⇒ Object
readonly
Returns the value of attribute permanent_code.
-
#suite ⇒ Object
readonly
Returns the value of attribute suite.
Attributes inherited from Base
Instance Method Summary collapse
- #agent(agent_id) ⇒ Object
-
#initialize(options = {}) ⇒ Corp
constructor
A new instance of Corp.
Methods included from Methods::Department
#department_create, #department_delete, #department_list, #department_update
Methods included from Methods::User
#user_batchdelete, #user_create, #user_delete, #user_get, #user_list, #user_simplelist, #user_update
Methods included from Cipher
#decrypt, #encrypt, #pack, #unpack
Methods inherited from Base
#access_token, #get, #post, #post_file, #request, #valid?
Methods included from Methods::Media
#get_media_url, #media_get, #media_upload
Constructor Details
#initialize(options = {}) ⇒ Corp
Returns a new instance of Corp.
11 12 13 14 15 |
# File 'lib/wework/api/corp.rb', line 11 def initialize(={}) @suite = .delete(:suite) @permanent_code = .delete(:permanent_code) super() end |
Instance Attribute Details
#permanent_code ⇒ Object (readonly)
Returns the value of attribute permanent_code.
9 10 11 |
# File 'lib/wework/api/corp.rb', line 9 def permanent_code @permanent_code end |
#suite ⇒ Object (readonly)
Returns the value of attribute suite.
9 10 11 |
# File 'lib/wework/api/corp.rb', line 9 def suite @suite end |