Class: Kennel::Syncer::Types::PlannedDelete

Inherits:
PlannedChange show all
Defined in:
lib/kennel/syncer.rb

Constant Summary collapse

TYPE =
:delete

Instance Attribute Summary collapse

Attributes inherited from PlannedChange

#klass, #tracking_id

Instance Method Summary collapse

Methods inherited from PlannedChange

#api_resource, #url

Constructor Details

#initialize(actual) ⇒ PlannedDelete

Returns a new instance of PlannedDelete.



369
370
371
372
373
# File 'lib/kennel/syncer.rb', line 369

def initialize(actual)
  super(actual.fetch(:klass), actual.fetch(:tracking_id))
  @actual = actual
  @id = actual.fetch(:id)
end

Instance Attribute Details

#actualObject (readonly)

Returns the value of attribute actual.



379
380
381
# File 'lib/kennel/syncer.rb', line 379

def actual
  @actual
end

#idObject (readonly)

Returns the value of attribute id.



379
380
381
# File 'lib/kennel/syncer.rb', line 379

def id
  @id
end

Instance Method Details

#changeObject



375
376
377
# File 'lib/kennel/syncer.rb', line 375

def change
  super(id)
end