Class: AblyUi::Core::Loader

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
lib/ably_ui/core/loader/loader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_cssObject (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_colorObject (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

#sizeObject (readonly)

Returns the value of attribute size.



4
5
6
# File 'lib/ably_ui/core/loader/loader.rb', line 4

def size
  @size
end