Class: Insights::API::Common::System

Inherits:
Object
  • Object
show all
Defined in:
lib/insights/api/common/system.rb

Instance Method Summary collapse

Constructor Details

#initialize(identity) ⇒ System

Returns a new instance of System.



5
6
7
# File 'lib/insights/api/common/system.rb', line 5

def initialize(identity)
  @system = identity.dig("identity", "system")
end

Instance Method Details

#cnObject



9
10
11
# File 'lib/insights/api/common/system.rb', line 9

def cn
  system["cn"]
end