Class: Kennel::Syncer::Types::PlannedCreate

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

Constant Summary collapse

TYPE =
:create

Instance Attribute Summary collapse

Attributes inherited from PlannedChange

#klass, #tracking_id

Instance Method Summary collapse

Methods inherited from PlannedChange

#api_resource, #change, #url

Constructor Details

#initialize(expected) ⇒ PlannedCreate

Returns a new instance of PlannedCreate.



30
31
32
33
# File 'lib/kennel/syncer/types.rb', line 30

def initialize(expected)
  super(expected.class, expected.tracking_id)
  @expected = expected
end

Instance Attribute Details

#expectedObject (readonly)

Returns the value of attribute expected.



35
36
37
# File 'lib/kennel/syncer/types.rb', line 35

def expected
  @expected
end