Class: ApiGW::BusinessProcess
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from ApiBase
#initialize
Constructor Details
This class inherits a constructor from ApiGW::ApiBase
Class Method Details
.api_name ⇒ Object
6
7
8
|
# File 'lib/apigw/business_process.rb', line 6
def api_name
'business-process'
end
|
.require_authorization? ⇒ Boolean
10
11
12
|
# File 'lib/apigw/business_process.rb', line 10
def require_authorization?
true
end
|
Instance Method Details
#get(path, service_name, opts = {}) ⇒ Object
15
16
17
|
# File 'lib/apigw/business_process.rb', line 15
def get(path, service_name, opts = {})
get_request path, apply_service_name_to_opts(opts, service_name)
end
|
#post(path, service_name, data, opts = {}) ⇒ Object
19
20
21
22
23
24
|
# File 'lib/apigw/business_process.rb', line 19
def post(path, service_name, data, opts = {})
opts_copy = Marshal.load Marshal.dump(opts)
opts_data = opts_copy[:data] || {}
opts_copy[:data] = opts_data.merge data
post_request path, apply_service_name_to_opts(opts_copy, service_name)
end
|