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

Inherits:
PlannedChange show all
Defined in:
lib/kennel/syncer/types.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.



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

#actualObject (readonly)

Returns the value of attribute actual.



69
70
71
# File 'lib/kennel/syncer/types.rb', line 69

def actual
  @actual
end

#idObject (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

#changeObject



65
66
67
# File 'lib/kennel/syncer/types.rb', line 65

def change
  super(id)
end