Class: Uchi::Ui::Spinner

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/uchi/ui/spinner.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message: "Loading...") ⇒ Spinner

Returns a new instance of Spinner.



9
10
11
12
# File 'app/components/uchi/ui/spinner.rb', line 9

def initialize(message: "Loading...")
  super()
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



7
8
9
# File 'app/components/uchi/ui/spinner.rb', line 7

def message
  @message
end