Class: PuppetX::Puppetlabs::Migration::OverviewModel::AttributeIssue
Abstract
- Inherits:
-
Entity
- Object
- Entity
- PuppetX::Puppetlabs::Migration::OverviewModel::AttributeIssue
show all
- Defined in:
- lib/puppet_x/puppetlabs/migration/overview_model.rb
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Entity
#<=>, #eql?, from_hash, #hash, #id, init_relationships, many_relationship, #many_relationship, many_rels_hash, simple_name
#initialize_from_hash, #to_hash
Constructor Details
#initialize(id, resource_conflict_id, attribute_id, value) ⇒ AttributeIssue
Returns a new instance of AttributeIssue.
580
581
582
583
584
585
|
# File 'lib/puppet_x/puppetlabs/migration/overview_model.rb', line 580
def initialize(id, resource_conflict_id, attribute_id, value)
super(id)
@resource_conflict_id = resource_conflict_id
@attribute_id = attribute_id
@value = value
end
|
Instance Attribute Details
#attribute_id ⇒ Object
577
578
579
|
# File 'lib/puppet_x/puppetlabs/migration/overview_model.rb', line 577
def attribute_id
@attribute_id
end
|
#resource_conflict_id ⇒ Object
576
577
578
|
# File 'lib/puppet_x/puppetlabs/migration/overview_model.rb', line 576
def resource_conflict_id
@resource_conflict_id
end
|
#value ⇒ Object
578
579
580
|
# File 'lib/puppet_x/puppetlabs/migration/overview_model.rb', line 578
def value
@value
end
|
Instance Method Details
#compliant? ⇒ Boolean
596
597
598
|
# File 'lib/puppet_x/puppetlabs/migration/overview_model.rb', line 596
def compliant?
false
end
|
#one_relationship(name) ⇒ Object
587
588
589
590
591
592
593
594
|
# File 'lib/puppet_x/puppetlabs/migration/overview_model.rb', line 587
def one_relationship(name)
case name
when :attribute
@attribute_id || UNDEFINED_ID
when :resource_conflict
@resource_conflict_id || UNDEFINED_ID
end
end
|