Class: ApiGW::BusinessProcess

Inherits:
ApiBase
  • Object
show all
Defined in:
lib/apigw/business_process.rb

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_nameObject



6
7
8
# File 'lib/apigw/business_process.rb', line 6

def api_name
  'business-process'
end

.require_authorization?Boolean

Returns:

  • (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