Method: NicInfo::DataNode#initialize

Defined in:
lib/nicinfo/data_tree.rb

#initialize(name, handle = nil, rest_ref = nil, data = nil, data_type = nil) ⇒ DataNode

Returns a new instance of DataNode.



25
26
27
28
29
30
31
32
# File 'lib/nicinfo/data_tree.rb', line 25

def initialize name, handle = nil, rest_ref = nil, data = nil, data_type = nil
  @name = name
  @children = []
  @data = data
  @handle = handle
  @rest_ref = rest_ref
  @data_type = data_type
end