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