Class: RailsServerMonitor::ServerTableRow

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/rails_server_monitor/server_table_row.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#titleObject (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

#valueObject (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