Class: RailsServerMonitor::Warnings::WarningComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- RailsServerMonitor::Warnings::WarningComponent
- Defined in:
- app/components/rails_server_monitor/warnings/warning_component.rb
Instance Attribute Summary collapse
-
#ctx ⇒ Object
readonly
Returns the value of attribute ctx.
-
#snapshot ⇒ Object
readonly
Returns the value of attribute snapshot.
-
#warning ⇒ Object
readonly
Returns the value of attribute warning.
Instance Method Summary collapse
-
#initialize(ctx:, snapshot:, warning:) ⇒ WarningComponent
constructor
A new instance of WarningComponent.
Constructor Details
#initialize(ctx:, snapshot:, warning:) ⇒ WarningComponent
Returns a new instance of WarningComponent.
7 8 9 10 11 |
# File 'app/components/rails_server_monitor/warnings/warning_component.rb', line 7 def initialize(ctx:, snapshot:, warning:) @ctx = ctx @snapshot = snapshot @warning = warning end |
Instance Attribute Details
#ctx ⇒ Object (readonly)
Returns the value of attribute ctx.
6 7 8 |
# File 'app/components/rails_server_monitor/warnings/warning_component.rb', line 6 def ctx @ctx end |
#snapshot ⇒ Object (readonly)
Returns the value of attribute snapshot.
6 7 8 |
# File 'app/components/rails_server_monitor/warnings/warning_component.rb', line 6 def snapshot @snapshot end |
#warning ⇒ Object (readonly)
Returns the value of attribute warning.
6 7 8 |
# File 'app/components/rails_server_monitor/warnings/warning_component.rb', line 6 def warning @warning end |