Class: Disp3D::PathInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/path_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node, parent_node, path_id) ⇒ PathInfo

Returns a new instance of PathInfo.



9
10
11
12
13
14
15
16
17
# File 'lib/path_info.rb', line 9

def initialize(node, parent_node, path_id)
  Util3D.check_arg_type(Node, node)
  Util3D.check_arg_type(NodeCollection, parent_node)
  Util3D.check_arg_type(::Integer, path_id)

  @node = node
  @parent_node = parent_node
  @path_id = path_id
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



5
6
7
# File 'lib/path_info.rb', line 5

def node
  @node
end

#parent_nodeObject (readonly)

Returns the value of attribute parent_node.



6
7
8
# File 'lib/path_info.rb', line 6

def parent_node
  @parent_node
end

#path_idObject (readonly)

Returns the value of attribute path_id.



7
8
9
# File 'lib/path_info.rb', line 7

def path_id
  @path_id
end