Class: JetUi::Stat::LabelComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/jet_ui/stat/label_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ LabelComponent

Returns a new instance of LabelComponent.



6
7
8
# File 'app/components/jet_ui/stat/label_component.rb', line 6

def initialize(**options)
  @options = options
end

Instance Method Details

#callObject



10
11
12
# File 'app/components/jet_ui/stat/label_component.rb', line 10

def call
   :p, content, class: classes, **@options
end