Class: Kennel::Syncer::Types::PlannedDelete
- Inherits:
-
PlannedChange
- Object
- PlannedChange
- Kennel::Syncer::Types::PlannedDelete
- Defined in:
- lib/kennel/syncer/types.rb
Constant Summary collapse
- TYPE =
:delete
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from PlannedChange
Instance Method Summary collapse
- #change ⇒ Object
-
#initialize(actual) ⇒ PlannedDelete
constructor
A new instance of PlannedDelete.
Methods inherited from PlannedChange
Constructor Details
#initialize(actual) ⇒ PlannedDelete
Returns a new instance of PlannedDelete.
59 60 61 62 63 |
# File 'lib/kennel/syncer/types.rb', line 59 def initialize(actual) super(actual.fetch(:klass), actual.fetch(:tracking_id)) @actual = actual @id = actual.fetch(:id) end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
69 70 71 |
# File 'lib/kennel/syncer/types.rb', line 69 def actual @actual end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
69 70 71 |
# File 'lib/kennel/syncer/types.rb', line 69 def id @id end |
Instance Method Details
#change ⇒ Object
65 66 67 |
# File 'lib/kennel/syncer/types.rb', line 65 def change super(id) end |