Class: OpConnect::ServerHealth
- Inherits:
-
Object
- Object
- OpConnect::ServerHealth
- Defined in:
- lib/op_connect/server_health.rb,
lib/op_connect/server_health/dependency.rb
Defined Under Namespace
Classes: Dependency
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ServerHealth
constructor
A new instance of ServerHealth.
Constructor Details
#initialize(options = {}) ⇒ ServerHealth
Returns a new instance of ServerHealth.
7 8 9 10 11 |
# File 'lib/op_connect/server_health.rb', line 7 def initialize( = {}) @name = ["name"] @version = ["version"] @dependencies = ["dependencies"]&.collect! { |dependency| Dependency.new(dependency) } || [] end |
Instance Attribute Details
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
5 6 7 |
# File 'lib/op_connect/server_health.rb', line 5 def dependencies @dependencies end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/op_connect/server_health.rb', line 5 def name @name end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
5 6 7 |
# File 'lib/op_connect/server_health.rb', line 5 def version @version end |