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



365
366
367
368
# File 'lib/edi4r/diagrams.rb', line 365

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



363
364
365
# File 'lib/edi4r/diagrams.rb', line 363

def sg_name
  @sg_name
end

#tailObject

Returns the value of attribute tail



362
363
364
# File 'lib/edi4r/diagrams.rb', line 362

def tail
  @tail
end