Class: Kennel::Syncer::Plan
- Inherits:
-
Struct
- Object
- Struct
- Kennel::Syncer::Plan
- Defined in:
- lib/kennel/syncer/plan.rb
Instance Attribute Summary collapse
- #changes ⇒ Object
-
#creates ⇒ Object
Returns the value of attribute creates.
-
#deletes ⇒ Object
Returns the value of attribute deletes.
-
#updates ⇒ Object
Returns the value of attribute updates.
Instance Method Summary collapse
Instance Attribute Details
#changes ⇒ Object
7 8 9 |
# File 'lib/kennel/syncer/plan.rb', line 7 def changes @changes || (deletes + creates + updates).map(&:change) # roughly ordered in the way that update works end |
#creates ⇒ Object
Returns the value of attribute creates
4 5 6 |
# File 'lib/kennel/syncer/plan.rb', line 4 def creates @creates end |
#deletes ⇒ Object
Returns the value of attribute deletes
4 5 6 |
# File 'lib/kennel/syncer/plan.rb', line 4 def deletes @deletes end |
#updates ⇒ Object
Returns the value of attribute updates
4 5 6 |
# File 'lib/kennel/syncer/plan.rb', line 4 def updates @updates end |
Instance Method Details
#empty? ⇒ Boolean
11 12 13 |
# File 'lib/kennel/syncer/plan.rb', line 11 def empty? (creates + updates + deletes).empty? end |