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.
126 127 128 |
# File 'lib/datadog/core/remote/configuration/repository.rb', line 126 def initialize @operations = [] end |
Instance Attribute Details
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
124 125 126 |
# File 'lib/datadog/core/remote/configuration/repository.rb', line 124 def operations @operations end |
Instance Method Details
#delete(path) ⇒ Object
130 131 132 |
# File 'lib/datadog/core/remote/configuration/repository.rb', line 130 def delete(path) @operations << Operation::Delete.new(path) end |
#insert(path, target, content) ⇒ Object
134 135 136 |
# File 'lib/datadog/core/remote/configuration/repository.rb', line 134 def insert(path, target, content) @operations << Operation::Insert.new(path, target, content) end |