Method: ScimPatchOperation#initialize
- Defined in:
- app/libraries/scim_patch_operation.rb
#initialize(op, path, value) ⇒ ScimPatchOperation
path presence is guaranteed by ScimPatchOperationConverter
value must be String or Array. complex-value(Hash) is converted to multiple single-value operations by ScimPatchOperationConverter
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'app/libraries/scim_patch_operation.rb', line 11 def initialize(op, path, value) if !op.in?(%w[add replace remove]) || path.nil? raise Scimaenaga::ExceptionHandler::UnsupportedPatchRequest end # define validate method in the inherited class validate(op, path, value) @op = op @value = value @path_scim = parse_path_scim(path) @path_sp = path_scim_to_path_sp(@path_scim) # define parse method in the inherited class end |