class Lun
Authors: Christopher M Wood (<woodc@us.ibm.com>)
John F Hutchinson (<jfhutchi@us.ibm.com)
© Copyright IBM Corporation 2015.
LICENSE: MIT (opensource.org/licenses/MIT)
Attributes
name[R]
pvid[R]
size_in_mb[R]
Public Class Methods
new(name,pvid, size_in_mb)
click to toggle source
# File lib/rbvppc/lun.rb, line 10 def initialize(name,pvid, size_in_mb) @name = name #@serial_number = serial_number @pvid = pvid @size_in_mb = size_in_mb.to_i end
Public Instance Methods
==(other_lun)
click to toggle source
Override == to test equality of two disk's PVIDs??
# File lib/rbvppc/lun.rb, line 19 def ==(other_lun) return self.pvid == other_lun.pvid end