Class: LaunchDarkly::Interfaces::DataSystem::Change
- Inherits:
-
Object
- Object
- LaunchDarkly::Interfaces::DataSystem::Change
- Defined in:
- lib/ldclient-rb/interfaces/data_system.rb
Overview
Change represents a change to a piece of data, such as an update or deletion.
Instance Attribute Summary collapse
-
#action ⇒ String
readonly
The action (ChangeType).
-
#key ⇒ Symbol
readonly
The key.
-
#kind ⇒ String
readonly
The kind (ObjectKind).
-
#object ⇒ Hash?
readonly
The object data (for PUT actions).
-
#version ⇒ Integer
readonly
The version.
Instance Method Summary collapse
-
#initialize(action:, kind:, key:, version:, object: nil) ⇒ Change
constructor
A new instance of Change.
Constructor Details
#initialize(action:, kind:, key:, version:, object: nil) ⇒ Change
Returns a new instance of Change.
204 205 206 207 208 209 210 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 204 def initialize(action:, kind:, key:, version:, object: nil) @action = action @kind = kind @key = key @version = version @object = object end |
Instance Attribute Details
#action ⇒ String (readonly)
Returns The action (LaunchDarkly::Interfaces::DataSystem::ChangeType).
183 184 185 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 183 def action @action end |
#key ⇒ Symbol (readonly)
Returns The key.
189 190 191 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 189 def key @key end |
#kind ⇒ String (readonly)
Returns The kind (ObjectKind).
186 187 188 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 186 def kind @kind end |
#object ⇒ Hash? (readonly)
Returns The object data (for PUT actions).
195 196 197 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 195 def object @object end |
#version ⇒ Integer (readonly)
Returns The version.
192 193 194 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 192 def version @version end |