Class: Liquid::Server::UptimeGauge
- Inherits:
-
Object
- Object
- Liquid::Server::UptimeGauge
- Includes:
- Gauge
- Defined in:
- lib/liquid/server.rb
Instance Method Summary collapse
- #getValue ⇒ Object
-
#initialize(server) ⇒ UptimeGauge
constructor
A new instance of UptimeGauge.
Constructor Details
#initialize(server) ⇒ UptimeGauge
Returns a new instance of UptimeGauge.
62 63 64 |
# File 'lib/liquid/server.rb', line 62 def initialize(server) @server = server end |
Instance Method Details
#getValue ⇒ Object
66 67 68 |
# File 'lib/liquid/server.rb', line 66 def getValue @server.uptime.to_i end |