Class: OpsWalrus::PackageDependencyReference
- Inherits:
-
ImportReference
- Object
- ImportReference
- OpsWalrus::PackageDependencyReference
- Defined in:
- lib/opswalrus/runtime_environment.rb
Instance Attribute Summary collapse
-
#package_reference ⇒ Object
Returns the value of attribute package_reference.
Attributes inherited from ImportReference
Instance Method Summary collapse
-
#initialize(local_name, package_reference) ⇒ PackageDependencyReference
constructor
A new instance of PackageDependencyReference.
- #summary ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(local_name, package_reference) ⇒ PackageDependencyReference
Returns a new instance of PackageDependencyReference.
24 25 26 27 |
# File 'lib/opswalrus/runtime_environment.rb', line 24 def initialize(local_name, package_reference) super(local_name) @package_reference = package_reference end |
Instance Attribute Details
#package_reference ⇒ Object
Returns the value of attribute package_reference.
23 24 25 |
# File 'lib/opswalrus/runtime_environment.rb', line 23 def package_reference @package_reference end |
Instance Method Details
#summary ⇒ Object
31 32 33 |
# File 'lib/opswalrus/runtime_environment.rb', line 31 def summary "#{local_name}: #{package_reference.summary}" end |
#to_s ⇒ Object
28 29 30 |
# File 'lib/opswalrus/runtime_environment.rb', line 28 def to_s "PackageDependencyReference(local_name=#{@local_name}, package_reference=#{@package_reference})" end |