Class: Katalyst::Navigation::Item
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Katalyst::Navigation::Item
- Defined in:
- app/models/katalyst/navigation/item.rb
Overview
STI base class for menu items (links and buttons)
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#index ⇒ Object
Returns the value of attribute index.
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
11 12 13 |
# File 'app/models/katalyst/navigation/item.rb', line 11 def children @children end |
#depth ⇒ Object
Returns the value of attribute depth.
11 12 13 |
# File 'app/models/katalyst/navigation/item.rb', line 11 def depth @depth end |
#index ⇒ Object
Returns the value of attribute index.
11 12 13 |
# File 'app/models/katalyst/navigation/item.rb', line 11 def index @index end |
#parent ⇒ Object
Returns the value of attribute parent.
11 12 13 |
# File 'app/models/katalyst/navigation/item.rb', line 11 def parent @parent end |