Class: PuppetX::Puppetlabs::Migration::OverviewModel::EdgeIssue Abstract
Overview
This class is abstract.
Direct Known Subclasses
Instance Attribute Summary collapse
- #source_id ⇒ Object readonly
- #target_id ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(id, source_id, target_id) ⇒ EdgeIssue
constructor
A new instance of EdgeIssue.
- #one_relationship(name) ⇒ Object
Methods inherited from NodeIssue
Methods inherited from Entity
#<=>, #eql?, from_hash, #hash, #id, init_relationships, many_relationship, #many_relationship, many_rels_hash, simple_name
Methods included from ModelObject
#initialize_from_hash, #to_hash
Constructor Details
#initialize(id, source_id, target_id) ⇒ EdgeIssue
Returns a new instance of EdgeIssue.
478 479 480 481 482 |
# File 'lib/puppet_x/puppetlabs/migration/overview_model.rb', line 478 def initialize(id, source_id, target_id) super(id) @source_id = source_id @target_id = target_id end |
Instance Attribute Details
#source_id ⇒ Object (readonly)
471 472 473 |
# File 'lib/puppet_x/puppetlabs/migration/overview_model.rb', line 471 def source_id @source_id end |
#target_id ⇒ Object (readonly)
472 473 474 |
# File 'lib/puppet_x/puppetlabs/migration/overview_model.rb', line 472 def target_id @target_id end |
Instance Method Details
#one_relationship(name) ⇒ Object
484 485 486 487 488 489 490 491 |
# File 'lib/puppet_x/puppetlabs/migration/overview_model.rb', line 484 def one_relationship(name) case name when :source source_id || UNDEFINED_ID when :target target_id || UNDEFINED_ID end end |