Class: Xing::Services::JsonTreeLister::TreeNode

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::SerializerSupport
Defined in:
lib/xing/services/json_tree_lister.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node, children) ⇒ TreeNode

Returns a new instance of TreeNode.



11
12
13
14
# File 'lib/xing/services/json_tree_lister.rb', line 11

def initialize(node, children)
  @node = node
  @children = children
end

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children.



16
17
18
# File 'lib/xing/services/json_tree_lister.rb', line 16

def children
  @children
end

#nodeObject (readonly)

Returns the value of attribute node.



16
17
18
# File 'lib/xing/services/json_tree_lister.rb', line 16

def node
  @node
end