Class: Fullstack::Admin::Group
- Defined in:
- lib/fullstack/admin/resources.rb
Overview
Group
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Group
constructor
A new instance of Group.
- #resource(name) ⇒ Object
- #type ⇒ Object
Methods inherited from Entity
#leaf?, #traverse_bottom_up, #traverse_top_down
Constructor Details
#initialize(name) ⇒ Group
Returns a new instance of Group.
66 67 68 69 |
# File 'lib/fullstack/admin/resources.rb', line 66 def initialize(name) @name = "#{name}" @children = [] end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
64 65 66 |
# File 'lib/fullstack/admin/resources.rb', line 64 def children @children end |
#icon ⇒ Object
Returns the value of attribute icon.
64 65 66 |
# File 'lib/fullstack/admin/resources.rb', line 64 def icon @icon end |
#name ⇒ Object
Returns the value of attribute name.
64 65 66 |
# File 'lib/fullstack/admin/resources.rb', line 64 def name @name end |