Class: WPAR::Device

Inherits:
Object
  • Object
show all
Defined in:
lib/wpars/device.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Device

Returns a new instance of Device.



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/wpars/device.rb', line 6

def initialize(params)
  @command = params[:command]
  @name = params[:name]
  @devname = params[:devname]
  @devtype = params[:devtype]
  @vdevname = params[:vdevname]
  @devstatus = params[:devstatus]
  @devid = params[:devid]
  @rootvg = params[:rootvg]
  @adapter = params[:adapter]
end

Instance Attribute Details

#adapterObject (readonly)

Returns the value of attribute adapter.



4
5
6
# File 'lib/wpars/device.rb', line 4

def adapter
  @adapter
end

#devidObject (readonly)

Returns the value of attribute devid.



4
5
6
# File 'lib/wpars/device.rb', line 4

def devid
  @devid
end

#devnameObject (readonly)

Returns the value of attribute devname.



3
4
5
# File 'lib/wpars/device.rb', line 3

def devname
  @devname
end

#devstatusObject (readonly)

Returns the value of attribute devstatus.



3
4
5
# File 'lib/wpars/device.rb', line 3

def devstatus
  @devstatus
end

#devtypeObject (readonly)

Returns the value of attribute devtype.



3
4
5
# File 'lib/wpars/device.rb', line 3

def devtype
  @devtype
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/wpars/device.rb', line 3

def name
  @name
end

#rootvgObject (readonly)

Returns the value of attribute rootvg.



4
5
6
# File 'lib/wpars/device.rb', line 4

def rootvg
  @rootvg
end

#vdevnameObject (readonly)

Returns the value of attribute vdevname.



3
4
5
# File 'lib/wpars/device.rb', line 3

def vdevname
  @vdevname
end