Class: Arara::GoogleCalendar::MenuItemComponent

Inherits:
ActionView::Component::Base
  • Object
show all
Defined in:
app/components/arara/google_calendar/menu_item_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(icon:, title:, count: nil, active: false) ⇒ MenuItemComponent

Returns a new instance of MenuItemComponent.



3
4
5
6
7
8
# File 'app/components/arara/google_calendar/menu_item_component.rb', line 3

def initialize(icon:, title:, count: nil, active: false)
  @icon = icon
  @title = title
  @count = count
  @active = active
end