Class: Monit::HTTPD

Inherits:
Object
  • Object
show all
Defined in:
lib/monit/httpd.rb

Overview

The HTTPD section from the Monit XML

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ HTTPD

Returns a new instance of HTTPD.



6
7
8
9
10
# File 'lib/monit/httpd.rb', line 6

def initialize(options = {})
  @address = options["address"]
  @port    = options["port"]
  @ssl     = options["ssl"] == "1" ? true : false
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



4
5
6
# File 'lib/monit/httpd.rb', line 4

def address
  @address
end

#portObject (readonly)

Returns the value of attribute port.



4
5
6
# File 'lib/monit/httpd.rb', line 4

def port
  @port
end

#sslObject (readonly)

Returns the value of attribute ssl.



4
5
6
# File 'lib/monit/httpd.rb', line 4

def ssl
  @ssl
end