Module: JPSClient::API::Bug
- Included in:
- Client
- Defined in:
- lib/jpsclient/api/bug.rb
Overview
Bug 相关 API 自动生成的模块,处理 bug 相关接口
Instance Method Summary collapse
-
#create_create(params: {}) ⇒ Hash
Create Create.
-
#create_delete(params: {}) ⇒ Hash
Create Delete.
-
#create_update(params: {}) ⇒ Hash
Create Update.
-
#get_detail(params: {}) ⇒ Hash
Get Detail.
-
#get_fields(params: {}) ⇒ Hash
Get Fields.
-
#get_list(params: {}) ⇒ Hash
Get List.
Instance Method Details
#create_create(params: {}) ⇒ Hash
Create Create
50 51 52 53 54 55 56 57 |
# File 'lib/jpsclient/api/bug.rb', line 50 def create_create(params: {}) config = @request_config && @request_config["bug_create"] raise JPSClient::ExceptionError, "Missing config for bug_create" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#create_delete(params: {}) ⇒ Hash
Create Delete
37 38 39 40 41 42 43 44 |
# File 'lib/jpsclient/api/bug.rb', line 37 def create_delete(params: {}) config = @request_config && @request_config["bug_delete"] raise JPSClient::ExceptionError, "Missing config for bug_delete" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#create_update(params: {}) ⇒ Hash
Create Update
11 12 13 14 15 16 17 18 |
# File 'lib/jpsclient/api/bug.rb', line 11 def create_update(params: {}) config = @request_config && @request_config["bug_update"] raise JPSClient::ExceptionError, "Missing config for bug_update" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#get_detail(params: {}) ⇒ Hash
Get Detail
76 77 78 79 80 81 82 83 |
# File 'lib/jpsclient/api/bug.rb', line 76 def get_detail(params: {}) config = @request_config && @request_config["bug_detail"] raise JPSClient::ExceptionError, "Missing config for bug_detail" unless config && config["url"] path = config["url"] return request_with_auth(:get, path, params: params) end |
#get_fields(params: {}) ⇒ Hash
Get Fields
63 64 65 66 67 68 69 70 |
# File 'lib/jpsclient/api/bug.rb', line 63 def get_fields(params: {}) config = @request_config && @request_config["bug_fields"] raise JPSClient::ExceptionError, "Missing config for bug_fields" unless config && config["url"] path = config["url"] return request_with_auth(:get, path, params: params) end |
#get_list(params: {}) ⇒ Hash
Get List
24 25 26 27 28 29 30 31 |
# File 'lib/jpsclient/api/bug.rb', line 24 def get_list(params: {}) config = @request_config && @request_config["bug_list"] raise JPSClient::ExceptionError, "Missing config for bug_list" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |