Class: Audiences::Scim::PatchOp::Operation

Inherits:
Struct
  • Object
show all
Defined in:
lib/audiences/scim/patch_op.rb

Instance Method Summary collapse

Instance Method Details

#process(object, operator) ⇒ Object



21
22
23
24
25
# File 'lib/audiences/scim/patch_op.rb', line 21

def process(object, operator)
  raise "Operation #{op} is unknown to #{operator.class}" unless operator.respond_to?(op)

  operator.public_send(op, object, path, value)
end