Class: PuppetX::Puppetlabs::Migration::CatalogDeltaModel::Diff Abstract

Inherits:
DeltaEntity
  • Object
show all
Defined in:
lib/puppet_x/puppetlabs/migration/catalog_delta_model.rb

Overview

This class is abstract.

An element in the model that contains an Integer diff_id

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DeltaEntity

from_hash

Methods included from ModelObject

#initialize_from_hash, #to_hash

Instance Attribute Details

#diff_idObject (readonly)



77
78
79
# File 'lib/puppet_x/puppetlabs/migration/catalog_delta_model.rb', line 77

def diff_id
  @diff_id
end

Instance Method Details

#assign_ids(id) ⇒ Integer

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Assigns id numbers to this object and contained objects. The id is incremented once for each assignment that is made.

Parameters:

  • id (Integer)

    The id to set

Returns:

  • (Integer)

    The incremented id



86
87
88
89
# File 'lib/puppet_x/puppetlabs/migration/catalog_delta_model.rb', line 86

def assign_ids(id)
  @diff_id = id
  id + 1
end