Class: AblyUi::Core::Loader
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- AblyUi::Core::Loader
- Defined in:
- lib/ably_ui/core/loader/loader.rb
Instance Attribute Summary collapse
-
#additional_css ⇒ Object
readonly
Returns the value of attribute additional_css.
-
#ring_color ⇒ Object
readonly
Returns the value of attribute ring_color.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(size: '1.5rem', ring_color: 'text-dark-grey', additional_css: '') ⇒ Loader
constructor
A new instance of Loader.
Constructor Details
#initialize(size: '1.5rem', ring_color: 'text-dark-grey', additional_css: '') ⇒ Loader
Returns a new instance of Loader.
8 9 10 11 12 13 14 15 16 |
# File 'lib/ably_ui/core/loader/loader.rb', line 8 def initialize( size: '1.5rem', ring_color: 'text-dark-grey', additional_css: '' ) @size = size @ring_color = ring_color @additional_css = additional_css end |
Instance Attribute Details
#additional_css ⇒ Object (readonly)
Returns the value of attribute additional_css.
6 7 8 |
# File 'lib/ably_ui/core/loader/loader.rb', line 6 def additional_css @additional_css end |
#ring_color ⇒ Object (readonly)
Returns the value of attribute ring_color.
5 6 7 |
# File 'lib/ably_ui/core/loader/loader.rb', line 5 def ring_color @ring_color end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
4 5 6 |
# File 'lib/ably_ui/core/loader/loader.rb', line 4 def size @size end |