Class: PuppetX::Puppetlabs::Migration::CatalogDeltaModel::Edge
- Inherits:
-
Diff
- Object
- DeltaEntity
- Diff
- PuppetX::Puppetlabs::Migration::CatalogDeltaModel::Edge
- Defined in:
- lib/puppet_x/puppetlabs/migration/catalog_delta_model.rb
Overview
A Catalog Edge
Instance Attribute Summary collapse
- #source ⇒ Object readonly
- #target ⇒ Object readonly
Attributes inherited from Diff
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(source, target) ⇒ Edge
constructor
A new instance of Edge.
Methods inherited from Diff
Methods inherited from DeltaEntity
Methods included from ModelObject
#initialize_from_hash, #to_hash
Constructor Details
#initialize(source, target) ⇒ Edge
Returns a new instance of Edge.
151 152 153 154 |
# File 'lib/puppet_x/puppetlabs/migration/catalog_delta_model.rb', line 151 def initialize(source, target) @source = assert_type(String, source) @target = assert_type(String, target) end |
Instance Attribute Details
#source ⇒ Object (readonly)
142 143 144 |
# File 'lib/puppet_x/puppetlabs/migration/catalog_delta_model.rb', line 142 def source @source end |
#target ⇒ Object (readonly)
147 148 149 |
# File 'lib/puppet_x/puppetlabs/migration/catalog_delta_model.rb', line 147 def target @target end |
Instance Method Details
#==(other) ⇒ Object
156 157 158 |
# File 'lib/puppet_x/puppetlabs/migration/catalog_delta_model.rb', line 156 def ==(other) other.instance_of?(Edge) && source == other.source && target == other.target end |