Class: Xing::Services::JsonTreeLister::TreeNode
- Inherits:
-
Object
- Object
- Xing::Services::JsonTreeLister::TreeNode
- Includes:
- ActiveModel::SerializerSupport
- Defined in:
- lib/xing/services/json_tree_lister.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node, children) ⇒ TreeNode
constructor
A new instance of TreeNode.
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
#children ⇒ Object (readonly)
Returns the value of attribute children.
16 17 18 |
# File 'lib/xing/services/json_tree_lister.rb', line 16 def children @children end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
16 17 18 |
# File 'lib/xing/services/json_tree_lister.rb', line 16 def node @node end |