Class: RubyUIAdmin::Menu::ResourceItem
- Inherits:
-
Struct
- Object
- Struct
- RubyUIAdmin::Menu::ResourceItem
- Defined in:
- lib/ruby_ui_admin/menu/builder.rb
Overview
A leaf linking to a resource's index. Carries the resolved resource so the view can build the path through the dynamic routes.
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#resource ⇒ Object
Returns the value of attribute resource.
Instance Method Summary collapse
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label
7 8 9 |
# File 'lib/ruby_ui_admin/menu/builder.rb', line 7 def label @label end |
#resource ⇒ Object
Returns the value of attribute resource
7 8 9 |
# File 'lib/ruby_ui_admin/menu/builder.rb', line 7 def resource @resource end |
Instance Method Details
#type ⇒ Object
8 |
# File 'lib/ruby_ui_admin/menu/builder.rb', line 8 def type = :resource |