Class: Datadog::Core::Remote::Configuration::Repository::Transaction
- Inherits:
-
Object
- Object
- Datadog::Core::Remote::Configuration::Repository::Transaction
- Defined in:
- lib/datadog/core/remote/configuration/repository.rb
Overview
Encapsulates transaction operations
Instance Attribute Summary collapse
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
Instance Method Summary collapse
- #delete(path) ⇒ Object
-
#initialize ⇒ Transaction
constructor
A new instance of Transaction.
- #insert(path, target, content) ⇒ Object
- #set(**options) ⇒ Object
- #update(path, target, content) ⇒ Object
Constructor Details
#initialize ⇒ Transaction
Returns a new instance of Transaction.
112 113 114 |
# File 'lib/datadog/core/remote/configuration/repository.rb', line 112 def initialize @operations = [] end |
Instance Attribute Details
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
110 111 112 |
# File 'lib/datadog/core/remote/configuration/repository.rb', line 110 def operations @operations end |
Instance Method Details
#delete(path) ⇒ Object
116 117 118 |
# File 'lib/datadog/core/remote/configuration/repository.rb', line 116 def delete(path) @operations << Operation::Delete.new(path) end |
#insert(path, target, content) ⇒ Object
120 121 122 |
# File 'lib/datadog/core/remote/configuration/repository.rb', line 120 def insert(path, target, content) @operations << Operation::Insert.new(path, target, content) end |