Class: KPM::SystemProxy::OsInformation

Inherits:
Object
  • Object
show all
Defined in:
lib/kpm/system_helpers/os_information.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOsInformation

Returns a new instance of OsInformation.



8
9
10
11
12
# File 'lib/kpm/system_helpers/os_information.rb', line 8

def initialize
  @os_info = fetch
  @labels =  [{ label: :os_detail },
              { label: :value }]
end

Instance Attribute Details

#labelsObject (readonly)

Returns the value of attribute labels.



6
7
8
# File 'lib/kpm/system_helpers/os_information.rb', line 6

def labels
  @labels
end

#os_infoObject (readonly)

Returns the value of attribute os_info.



6
7
8
# File 'lib/kpm/system_helpers/os_information.rb', line 6

def os_info
  @os_info
end