Class: Essence::SpinnerComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Essence::SpinnerComponent
- Defined in:
- app/components/essence/spinner_component.rb
Constant Summary
Constants included from FetchOrFallbackHelper
FetchOrFallbackHelper::InvalidValueError
Instance Attribute Summary collapse
-
#html_options ⇒ Object
readonly
Returns the value of attribute html_options.
Instance Method Summary collapse
-
#initialize(size: 40, **html_options) ⇒ SpinnerComponent
constructor
A new instance of SpinnerComponent.
Methods inherited from ApplicationComponent
Methods included from Utils
Methods included from FetchOrFallbackHelper
#fetch_or_fallback, #fetch_or_fallback_boolean, #integer_or_fallback
Constructor Details
#initialize(size: 40, **html_options) ⇒ SpinnerComponent
Returns a new instance of SpinnerComponent.
7 8 9 10 11 |
# File 'app/components/essence/spinner_component.rb', line 7 def initialize(size: 40, **) @size = integer_or_fallback(size, 40) = end |
Instance Attribute Details
#html_options ⇒ Object (readonly)
Returns the value of attribute html_options.
5 6 7 |
# File 'app/components/essence/spinner_component.rb', line 5 def end |