Class: PodPresenter

Inherits:
BasePresenter show all
Defined in:
app/presenters/pod_presenter.rb

Instance Attribute Summary

Attributes inherited from BasePresenter

#current_user

Instance Method Summary collapse

Methods inherited from BasePresenter

as_collection, #initialize, #method_missing, new

Constructor Details

This class inherits a constructor from BasePresenter

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class BasePresenter

Instance Method Details

#base_hash(*_arg) ⇒ Object Also known as: as_json


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'app/presenters/pod_presenter.rb', line 4

def base_hash(*_arg)
  {
    id:            id,
    host:          host,
    port:          port,
    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