mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-11 08:07:59 -05:00
The backend adds the total count for all pods, as well as the count for active pods. In the frontend shows the new counts but without any further user interactions
24 lines
539 B
Ruby
24 lines
539 B
Ruby
# frozen_string_literal: true
|
|
|
|
class PodPresenter < BasePresenter
|
|
def base_hash(*_arg)
|
|
{
|
|
id: id,
|
|
host: host,
|
|
port: port,
|
|
ssl: ssl,
|
|
status: status,
|
|
checked_at: checked_at,
|
|
response_time: response_time,
|
|
active: active?,
|
|
offline: offline?,
|
|
offline_since: offline_since,
|
|
created_at: created_at,
|
|
software: software,
|
|
error: error
|
|
}
|
|
end
|
|
|
|
alias_method :as_json, :base_hash
|
|
end
|