pod_presenter.rb 478 Bytes
Newer Older
1 2 3 4 5
class PodPresenter < BasePresenter
  def base_hash(*_arg)
    {
      id:            id,
      host:          host,
6
      port:          port,
7 8 9 10 11 12 13 14 15 16 17 18 19 20
      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