Class: TreeMenuNodeView
- Inherits:
-
Object
- Object
- TreeMenuNodeView
- Defined in:
- app/models/tree_menu_node_view.rb
Instance Attribute Summary collapse
-
#child_nodes ⇒ Object
Returns the value of attribute child_nodes.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#iconCls ⇒ Object
Returns the value of attribute iconCls.
-
#id ⇒ Object
Returns the value of attribute id.
-
#klass_name ⇒ Object
Returns the value of attribute klass_name.
-
#node_type ⇒ Object
Returns the value of attribute node_type.
-
#parent_node ⇒ Object
Returns the value of attribute parent_node.
-
#record_id ⇒ Object
Returns the value of attribute record_id.
-
#target_url ⇒ Object
Returns the value of attribute target_url.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize ⇒ TreeMenuNodeView
constructor
A new instance of TreeMenuNodeView.
- #set_parent_node(node_view) ⇒ Object
Constructor Details
#initialize ⇒ TreeMenuNodeView
Returns a new instance of TreeMenuNodeView.
9 10 11 |
# File 'app/models/tree_menu_node_view.rb', line 9 def initialize @child_nodes = [] end |
Instance Attribute Details
#child_nodes ⇒ Object
Returns the value of attribute child_nodes.
7 8 9 |
# File 'app/models/tree_menu_node_view.rb', line 7 def child_nodes @child_nodes end |
#icon ⇒ Object
Returns the value of attribute icon.
7 8 9 |
# File 'app/models/tree_menu_node_view.rb', line 7 def icon @icon end |
#iconCls ⇒ Object
Returns the value of attribute iconCls.
7 8 9 |
# File 'app/models/tree_menu_node_view.rb', line 7 def iconCls @iconCls end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'app/models/tree_menu_node_view.rb', line 7 def id @id end |
#klass_name ⇒ Object
Returns the value of attribute klass_name.
7 8 9 |
# File 'app/models/tree_menu_node_view.rb', line 7 def klass_name @klass_name end |
#node_type ⇒ Object
Returns the value of attribute node_type.
7 8 9 |
# File 'app/models/tree_menu_node_view.rb', line 7 def node_type @node_type end |
#parent_node ⇒ Object
Returns the value of attribute parent_node.
7 8 9 |
# File 'app/models/tree_menu_node_view.rb', line 7 def parent_node @parent_node end |
#record_id ⇒ Object
Returns the value of attribute record_id.
7 8 9 |
# File 'app/models/tree_menu_node_view.rb', line 7 def record_id @record_id end |
#target_url ⇒ Object
Returns the value of attribute target_url.
7 8 9 |
# File 'app/models/tree_menu_node_view.rb', line 7 def target_url @target_url end |
#text ⇒ Object
Returns the value of attribute text.
7 8 9 |
# File 'app/models/tree_menu_node_view.rb', line 7 def text @text end |
Instance Method Details
#set_parent_node(node_view) ⇒ Object
13 14 15 16 |
# File 'app/models/tree_menu_node_view.rb', line 13 def set_parent_node (node_view ) node_view.child_nodes << self.id @parent_node = node_view.id end |