Class: Cul::Fedora::Arm::Tasks::ReservePidsTask

Inherits:
Task
  • Object
show all
Defined in:
lib/cul/fedora/arm/tasks.rb

Instance Method Summary collapse

Methods inherited from Task

#post, #response

Constructor Details

#initialize(numPids, namespace = "demo") ⇒ ReservePidsTask

Returns a new instance of ReservePidsTask.



38
39
40
41
42
43
44
# File 'lib/cul/fedora/arm/tasks.rb', line 38

def initialize(numPids, namespace="demo")
  super()
  @apim = :getNextPID
  @numPids = numPids
  @namespace = namespace
  @args = {:numPIDs=>numPids,:pidNamespace=>namespace}
end