Class: Informo::Bios

Inherits:
Object
  • Object
show all
Defined in:
lib/informo/bios.rb

Overview

Allows for the retrieval of bios related information.

Instance Method Summary collapse

Instance Method Details

#dateObject

returns the release date of the installed bios version as a string



25
26
27
28
# File 'lib/informo/bios.rb', line 25

def date
  date = `dmidecode -s bios-release-date`.chomp
  return date
end

#serialObject

returns the serial number as a string



7
8
9
10
# File 'lib/informo/bios.rb', line 7

def serial
  serial = `dmidecode -s system-serial-number`.chomp
  return serial
end

#vendorObject

returns the bios vendor as a string



13
14
15
16
# File 'lib/informo/bios.rb', line 13

def vendor
  vendor = `dmidecode -s system-product-name`.chomp
  return vendor
end

#versionObject

returns the bios version as a string



19
20
21
22
# File 'lib/informo/bios.rb', line 19

def version
  version = `dmidecode -s bios-version`.chomp
  return version
end