Class: Satis::Breadcrumbs::Crumb

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/satis/breadcrumbs/component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path: nil, title: nil, icon: nil) ⇒ Crumb

Returns a new instance of Crumb.



8
9
10
11
12
# File 'app/components/satis/breadcrumbs/component.rb', line 8

def initialize(path: nil, title: nil, icon: nil)
  @path = path
  @title = title
  @icon = icon
end

Instance Attribute Details

#iconObject (readonly)

Returns the value of attribute icon.



6
7
8
# File 'app/components/satis/breadcrumbs/component.rb', line 6

def icon
  @icon
end

#pathObject (readonly)

Returns the value of attribute path.



6
7
8
# File 'app/components/satis/breadcrumbs/component.rb', line 6

def path
  @path
end

#titleObject (readonly)

Returns the value of attribute title.



6
7
8
# File 'app/components/satis/breadcrumbs/component.rb', line 6

def title
  @title
end