Class: EDI::Diagram::TNode

Inherits:
Node
  • Object
show all
Defined in:
lib/edi4r/diagrams.rb

Overview

T-Node: Additionally maintain the tail branch and the segment group name

Instance Attribute Summary collapse

Attributes inherited from Node

#index, #maxrep, #name, #status

Instance Method Summary collapse

Methods inherited from Node

create, #required?, #to_s

Constructor Details

#initialize(name, status, rep) ⇒ TNode

Returns a new instance of TNode.



422
423
424
425
# File 'lib/edi4r/diagrams.rb', line 422

def initialize(name, status, rep)
  super
  @tail, @sg_name = nil, @name
end

Instance Attribute Details

#sg_nameObject (readonly)

Returns the value of attribute sg_name.



420
421
422
# File 'lib/edi4r/diagrams.rb', line 420

def sg_name
  @sg_name
end

#tailObject

Returns the value of attribute tail.



419
420
421
# File 'lib/edi4r/diagrams.rb', line 419

def tail
  @tail
end