Class: Katalyst::Navigation::Item

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/katalyst/navigation/item.rb

Overview

STI base class for menu items (links and buttons)

Direct Known Subclasses

Button, Link

Instance Attribute Summary collapse

Instance Attribute Details

#childrenObject

Returns the value of attribute children.



11
12
13
# File 'app/models/katalyst/navigation/item.rb', line 11

def children
  @children
end

#depthObject

Returns the value of attribute depth.



11
12
13
# File 'app/models/katalyst/navigation/item.rb', line 11

def depth
  @depth
end

#indexObject

Returns the value of attribute index.



11
12
13
# File 'app/models/katalyst/navigation/item.rb', line 11

def index
  @index
end

#parentObject

Returns the value of attribute parent.



11
12
13
# File 'app/models/katalyst/navigation/item.rb', line 11

def parent
  @parent
end