Class: BadgeComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
lib/alveole/components/badge_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(label:, options: {}) ⇒ BadgeComponent

Returns a new instance of BadgeComponent.



2
3
4
5
6
7
# File 'lib/alveole/components/badge_component.rb', line 2

def initialize(label:, options: {})
  super

  @label = label
  @options = options
end