Class: Bs5::ProgressComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Bs5::ProgressComponent
- Includes:
- ViewComponent::SlotableV2
- Defined in:
- app/components/bs5/progress_component.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value = nil, options = {}) ⇒ ProgressComponent
constructor
A new instance of ProgressComponent.
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, = {}) = .symbolize_keys @value = value end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'app/components/bs5/progress_component.rb', line 8 def end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
8 9 10 |
# File 'app/components/bs5/progress_component.rb', line 8 def value @value end |