Module: JPSClient::API::Sketch
- Included in:
- Client
- Defined in:
- lib/jpsclient/api/sketch.rb
Overview
Sketch 相关 API 自动生成的模块,处理 sketch 相关接口
Instance Method Summary collapse
-
#create_sketch(params: {}) ⇒ Hash
Create Sketch.
-
#create_sketches(params: {}) ⇒ Hash
Create Sketches.
Instance Method Details
#create_sketch(params: {}) ⇒ Hash
Create Sketch
11 12 13 14 15 16 17 18 |
# File 'lib/jpsclient/api/sketch.rb', line 11 def create_sketch(params: {}) config = @request_config && @request_config["sketch_sketch"] raise JPSClient::ExceptionError, "Missing config for sketch_sketch" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#create_sketches(params: {}) ⇒ Hash
Create Sketches
24 25 26 27 28 29 30 31 |
# File 'lib/jpsclient/api/sketch.rb', line 24 def create_sketches(params: {}) config = @request_config && @request_config["sketch_sketches"] raise JPSClient::ExceptionError, "Missing config for sketch_sketches" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |