Class: Opener::Kaf::Visualizer::Entity

Inherits:
KAFNode
  • Object
show all
Defined in:
lib/opener/outlet/visualizer.rb

Instance Attribute Summary collapse

Attributes inherited from KAFNode

#content, #references, #tag, #targets

Instance Method Summary collapse

Methods inherited from KAFNode

#has_target?, #initialize, #process_subnodes, #set_content, #set_instance_variables, #set_targets, #target_ids

Constructor Details

This class inherits a constructor from Opener::Kaf::Visualizer::KAFNode

Instance Attribute Details

#eidObject (readonly)

Returns the value of attribute eid.



151
152
153
# File 'lib/opener/outlet/visualizer.rb', line 151

def eid
  @eid
end

#typeObject (readonly)

Returns the value of attribute type.



151
152
153
# File 'lib/opener/outlet/visualizer.rb', line 151

def type
  @type
end

Instance Method Details

#idObject



153
154
155
# File 'lib/opener/outlet/visualizer.rb', line 153

def id
  eid
end

#to_sObject



157
158
159
# File 'lib/opener/outlet/visualizer.rb', line 157

def to_s
  "#{type}: #{targets.map(&:to_s).join(", ")}"
end