Class: Alula::FeaturePlanCloneProc

Inherits:
RpcResource show all
Defined in:
lib/alula/procedures/feature_plan_clone_proc.rb

Defined Under Namespace

Classes: Response

Class Method Summary collapse

Methods inherited from RpcResource

ok?, request, wrap_payload

Class Method Details

.call(source_gp_id:, new_gp_id:, name:, description: "") ⇒ Object



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/alula/procedures/feature_plan_clone_proc.rb', line 32

def self.call(source_gp_id:, new_gp_id:, name:, description: "")
  payload = {
    sourceGpId: source_gp_id,
    newGpId: new_gp_id,
    name: name,
    description: description
  }

  request( 
    http_method: :post,
    path: '/rpc/v1/features/clone',
    payload: payload,
    handler: Response
  )
end