Class: Megaplan::User
- Inherits:
-
Api
- Object
- Api
- Megaplan::User
show all
- Defined in:
- lib/megaplan/user.rb
Instance Attribute Summary
Attributes inherited from Api
#endpoint, #login, #password
Class Method Summary
collapse
Methods inherited from Api
#auth_params, #auth_path, #authenticate, bad_response, card, check_response, create, #create_signature, custom_get, custom_post, delete, edit, find, #get_headers, #initial_path, #initialize, list, make_get_req, make_post_req, parsed_body, query_path, resource_path, save, to_query
Constructor Details
This class inherits a constructor from Megaplan::Api
Class Method Details
.block(client, query = {}) ⇒ Object
11
12
13
|
# File 'lib/megaplan/user.rb', line 11
def block(client, query = {})
custom_post(client, "/BumsCommonApiV01/UserAccount/block.api", query)
end
|
.info(client) ⇒ Object
7
8
9
|
# File 'lib/megaplan/user.rb', line 7
def info(client)
custom_get(client, "/BumsCommonApiV01/UserInfo/id.api")
end
|
.unblock(client, query = {}) ⇒ Object
15
16
17
|
# File 'lib/megaplan/user.rb', line 15
def unblock(client, query = {})
custom_post(client, "/BumsCommonApiV01/UserAccount/unblock.api", query)
end
|