Class: RRT_RUBY::RRTDeployment::Instance

Inherits:
RRT_RUBY::RRTGeneric::Element show all
Defined in:
lib/rrt_ruby/rrt_deployment.rb

Instance Attribute Summary

Attributes inherited from RRT_RUBY::RRTGeneric::Element

#documentation, #name, #qualifiedname, #stereotype

Instance Method Summary collapse

Constructor Details

#initialize(element) ⇒ Instance

Returns a new instance of Instance.



40
41
42
43
44
45
46
47
# File 'lib/rrt_ruby/rrt_deployment.rb', line 40

def initialize element
  begin
    super(element)
    @component=element.Component
  rescue
    raise RRTGeneric::ElementException.new(element),"error while initialising element #{$!}"
  end
end

Instance Method Details

#to_sObject



48
49
50
# File 'lib/rrt_ruby/rrt_deployment.rb', line 48

def to_s
  super()+", #{@component}"
end