Class: RubyUIAdmin::Menu::ResourceItem

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



7
8
9
# File 'lib/ruby_ui_admin/menu/builder.rb', line 7

def label
  @label
end

#resourceObject

Returns the value of attribute resource

Returns:

  • (Object)

    the current value of resource



7
8
9
# File 'lib/ruby_ui_admin/menu/builder.rb', line 7

def resource
  @resource
end

Instance Method Details

#typeObject



8
# File 'lib/ruby_ui_admin/menu/builder.rb', line 8

def type = :resource