Class: Bs5::ProgressComponent

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
ViewComponent::SlotableV2
Defined in:
app/components/bs5/progress_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value = nil, options = {}) ⇒ ProgressComponent

Returns a new instance of ProgressComponent.



10
11
12
13
# File 'app/components/bs5/progress_component.rb', line 10

def initialize(value = nil, options = {})
  @options = options.symbolize_keys
  @value = value
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'app/components/bs5/progress_component.rb', line 8

def options
  @options
end

#valueObject (readonly)

Returns the value of attribute value.



8
9
10
# File 'app/components/bs5/progress_component.rb', line 8

def value
  @value
end