Class: OpsWalrus::DynamicPackageImportReference

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) ⇒ DynamicPackageImportReference

Returns a new instance of DynamicPackageImportReference.



52
53
54
55
# File 'lib/opswalrus/runtime_environment.rb', line 52

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.



51
52
53
# File 'lib/opswalrus/runtime_environment.rb', line 51

def package_reference
  @package_reference
end

Instance Method Details

#summaryObject



59
60
61
# File 'lib/opswalrus/runtime_environment.rb', line 59

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

#to_sObject



56
57
58
# File 'lib/opswalrus/runtime_environment.rb', line 56

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