Class: Kennel::Syncer::Types::PlannedUpdate
- Inherits:
-
PlannedChange
- Object
- PlannedChange
- Kennel::Syncer::Types::PlannedUpdate
- Defined in:
- lib/kennel/syncer/types.rb
Constant Summary collapse
- TYPE =
:update
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#diff ⇒ Object
readonly
Returns the value of attribute diff.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from PlannedChange
Instance Method Summary collapse
- #change ⇒ Object
-
#initialize(expected, actual, diff) ⇒ PlannedUpdate
constructor
A new instance of PlannedUpdate.
Methods inherited from PlannedChange
Constructor Details
#initialize(expected, actual, diff) ⇒ PlannedUpdate
Returns a new instance of PlannedUpdate.
41 42 43 44 45 46 47 |
# File 'lib/kennel/syncer/types.rb', line 41 def initialize(expected, actual, diff) super(expected.class, expected.tracking_id) @expected = expected @actual = actual @diff = diff @id = actual.fetch(:id) end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
53 54 55 |
# File 'lib/kennel/syncer/types.rb', line 53 def actual @actual end |
#diff ⇒ Object (readonly)
Returns the value of attribute diff.
53 54 55 |
# File 'lib/kennel/syncer/types.rb', line 53 def diff @diff end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
53 54 55 |
# File 'lib/kennel/syncer/types.rb', line 53 def expected @expected end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
53 54 55 |
# File 'lib/kennel/syncer/types.rb', line 53 def id @id end |
Instance Method Details
#change ⇒ Object
49 50 51 |
# File 'lib/kennel/syncer/types.rb', line 49 def change super(id) end |