Class: ViewComponent::MenuItem

Inherits:
Struct
  • Object
show all
Defined in:
app/helpers/view_component/menu_item.rb

Instance Attribute Summary collapse

Instance Attribute Details

#extra_classesObject

Returns the value of attribute extra_classes

Returns:

  • (Object)

    the current value of extra_classes



4
5
6
# File 'app/helpers/view_component/menu_item.rb', line 4

def extra_classes
  @extra_classes
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



4
5
6
# File 'app/helpers/view_component/menu_item.rb', line 4

def label
  @label
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



4
5
6
# File 'app/helpers/view_component/menu_item.rb', line 4

def options
  @options
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



4
5
6
# File 'app/helpers/view_component/menu_item.rb', line 4

def type
  @type
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



4
5
6
# File 'app/helpers/view_component/menu_item.rb', line 4

def url
  @url
end