Rubyipmi::Freeipmi::Fru

Public Class Methods

new(opts = ObservableHash.new) click to toggle source
# File lib/rubyipmi/freeipmi/commands/fru.rb, line 5
def initialize(opts = ObservableHash.new)
      super("ipmi-fru", opts)
end

Public Instance Methods

list() click to toggle source

return the list of fru information in a hash

# File lib/rubyipmi/freeipmi/commands/fru.rb, line 10
def list
  @list ||= parse(command)
end
manufacturer() click to toggle source
# File lib/rubyipmi/freeipmi/commands/fru.rb, line 18
def manufacturer
  list["board_manufacturer"]
end
product() click to toggle source
# File lib/rubyipmi/freeipmi/commands/fru.rb, line 22
def product
  list["board_product_name"]
end
serial() click to toggle source
# File lib/rubyipmi/freeipmi/commands/fru.rb, line 14
def serial
  list["chassis_serial_number"]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.