class Monit::Platform
The platform section from the Monit
XML
Attributes
cpu[R]
machine[R]
memory[R]
name[R]
release[R]
version[R]
Public Class Methods
new(options = {})
click to toggle source
# File lib/monit/platform.rb, line 6 def initialize(options = {}) @name = options["name"] @release = options["release"] @version = options["version"] @machine = options["machine"] @cpu = options["cpu"].to_i @memory = options["memory"].to_i end