Class: Naginata::Configuration::Service
- Inherits:
-
Object
- Object
- Naginata::Configuration::Service
- Defined in:
- lib/naginata/configuration/service.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
-
#nagios ⇒ Object
readonly
Returns the value of attribute nagios.
Instance Method Summary collapse
-
#initialize(description, options = {}) ⇒ Service
constructor
A new instance of Service.
Constructor Details
#initialize(description, options = {}) ⇒ Service
Returns a new instance of Service.
10 11 12 13 14 15 16 |
# File 'lib/naginata/configuration/service.rb', line 10 def initialize(description, = {}) ArgumentError if [:host].nil? ArgumentError if [:on].nil? @description = description @hostname = [:host] @nagios = [:on] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/naginata/configuration/service.rb', line 4 def description @description end |
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
4 5 6 |
# File 'lib/naginata/configuration/service.rb', line 4 def hostname @hostname end |
#nagios ⇒ Object (readonly)
Returns the value of attribute nagios.
4 5 6 |
# File 'lib/naginata/configuration/service.rb', line 4 def nagios @nagios end |