Class: OpsWalrus::PackageDependencyReference

Inherits:
ImportReference show all
Defined in:
lib/opswalrus/runtime_environment.rb

Instance Attribute Summary collapse

Attributes inherited from ImportReference

#local_name

Instance Method Summary collapse

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_referenceObject

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

#summaryObject



31
32
33
# File 'lib/opswalrus/runtime_environment.rb', line 31

def summary
  "#{local_name}: #{package_reference.summary}"
end

#to_sObject



28
29
30
# File 'lib/opswalrus/runtime_environment.rb', line 28

def to_s
  "PackageDependencyReference(local_name=#{@local_name}, package_reference=#{@package_reference})"
end