Class: Audiences::Scim::PatchOp
- Inherits:
-
Object
- Object
- Audiences::Scim::PatchOp
- Defined in:
- lib/audiences/scim/patch_op.rb
Defined Under Namespace
Classes: Operation
Instance Attribute Summary collapse
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
Instance Method Summary collapse
-
#initialize(patch_op) ⇒ PatchOp
constructor
A new instance of PatchOp.
- #process(object, operator) ⇒ Object
Constructor Details
#initialize(patch_op) ⇒ PatchOp
Returns a new instance of PatchOp.
8 9 10 11 12 |
# File 'lib/audiences/scim/patch_op.rb', line 8 def initialize(patch_op) @operations = patch_op["Operations"].flat_map do |operation| derive_operation(operation) end end |
Instance Attribute Details
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
6 7 8 |
# File 'lib/audiences/scim/patch_op.rb', line 6 def operations @operations end |
Instance Method Details
#process(object, operator) ⇒ Object
14 15 16 |
# File 'lib/audiences/scim/patch_op.rb', line 14 def process(object, operator) @operations.each { _1.process(object, operator) } end |