class Lsps

Attributes

data[R]

Public Class Methods

new(string) click to toggle source
# File lib/AIX/lsps.rb, line 7
def initialize(string)
  @data = {}

  parse(string) unless string.empty?
end

Public Instance Methods

parse(string) click to toggle source
# File lib/AIX/lsps.rb, line 13
def parse(string)

  string.split("\n").each do |line|
    next if line =~ /Page\sSpace\s+Physical\sVolume\s+Volume\sGroup\s+Size\s+%Used\s+Active\s+Auto\s+Type/
    lsps = Lsps_entry.new(line)
    @data[lsps.psname] = lsps
  end
  true
end