Class: Alchemy::Admin::Message
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Alchemy::Admin::Message
- Defined in:
- app/components/alchemy/admin/message.rb
Instance Attribute Summary collapse
-
#dismissable ⇒ Object
readonly
Returns the value of attribute dismissable.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(message = nil, type: :info, dismissable: false) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(message = nil, type: :info, dismissable: false) ⇒ Message
Returns a new instance of Message.
12 13 14 15 16 |
# File 'app/components/alchemy/admin/message.rb', line 12 def initialize( = nil, type: :info, dismissable: false) @message = @dismissable = dismissable @type = type end |
Instance Attribute Details
#dismissable ⇒ Object (readonly)
Returns the value of attribute dismissable.
4 5 6 |
# File 'app/components/alchemy/admin/message.rb', line 4 def dismissable @dismissable end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'app/components/alchemy/admin/message.rb', line 4 def @message end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'app/components/alchemy/admin/message.rb', line 4 def type @type end |