Class: Monit::HTTPD
- Inherits:
-
Object
- Object
- Monit::HTTPD
- Defined in:
- lib/monit/httpd.rb
Overview
The HTTPD section from the Monit XML
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#ssl ⇒ Object
readonly
Returns the value of attribute ssl.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ HTTPD
constructor
A new instance of HTTPD.
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( = {}) @address = ["address"] @port = ["port"] @ssl = ["ssl"] == "1" ? true : false end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
4 5 6 |
# File 'lib/monit/httpd.rb', line 4 def address @address end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
4 5 6 |
# File 'lib/monit/httpd.rb', line 4 def port @port end |
#ssl ⇒ Object (readonly)
Returns the value of attribute ssl.
4 5 6 |
# File 'lib/monit/httpd.rb', line 4 def ssl @ssl end |