class FrameIOSlots

Attributes

data_string_raw[R]

Public Class Methods

new(string = '') click to toggle source
# File lib/HMC/FrameIOSlots.rb, line 8
def initialize(string = '')

  @array = Array.new()

  unless string.empty?
    @data_string_raw = string
    parse(string)
  end
end

Public Instance Methods

get_lpar(lpar) click to toggle source
# File lib/HMC/FrameIOSlots.rb, line 26
def get_lpar(lpar)
  @array.each do |slot|
    # if lpar == slot.lpar_name
      # pp  slot.lpar_name.to_s + " " + slot.description
    # end
  end
end
parse(string) click to toggle source
# File lib/HMC/FrameIOSlots.rb, line 18
def parse(string)

  string.each_line do |line|
    @array << FrameIOSlot.new(line)
  end

end