diaspora/app/presenters/pod_presenter.rb
Florian Staudacher ea397ffdfb Add connection test for pods in the network
* add a class for checking pod connectivity
* extend pod model to handle new functionality
* add an admin frontend to list pods and re-trigger checks manually
* add a daily worker to run through all the pods
* add unit tests for most of the new code
2015-08-24 22:04:53 +02:00

19 lines
451 B
Ruby

class PodPresenter < BasePresenter
def base_hash(*_arg)
{
id: id,
host: host,
ssl: ssl,
status: status,
checked_at: checked_at,
response_time: response_time,
offline: offline?,
offline_since: offline_since,
created_at: created_at,
software: software,
error: error
}
end
alias_method :as_json, :base_hash
end