Class: OpConnect::ServerHealth

Inherits:
Object
  • Object
show all
Defined in:
lib/op_connect/server_health.rb,
lib/op_connect/server_health/dependency.rb

Defined Under Namespace

Classes: Dependency

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @name = options["name"]
  @version = options["version"]
  @dependencies = options["dependencies"]&.collect! { |dependency| Dependency.new(dependency) } || []
end

Instance Attribute Details

#dependenciesObject (readonly)

Returns the value of attribute dependencies.



5
6
7
# File 'lib/op_connect/server_health.rb', line 5

def dependencies
  @dependencies
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/op_connect/server_health.rb', line 5

def name
  @name
end

#versionObject (readonly)

Returns the value of attribute version.



5
6
7
# File 'lib/op_connect/server_health.rb', line 5

def version
  @version
end