Class: Hpe3parSdk::PortPos

Inherits:
Object
  • Object
show all
Defined in:
lib/Hpe3parSdk/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object_hash) ⇒ PortPos

Returns a new instance of PortPos.



1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
# File 'lib/Hpe3parSdk/models.rb', line 1564

def initialize(object_hash)
  if object_hash == nil
    return
  end

  self.node = object_hash['node']

  self.slot = object_hash['slot']

  self.card_port = object_hash['cardPort']

end

Instance Attribute Details

#card_portObject

type - Number

Port number on the FC card.



1562
1563
1564
# File 'lib/Hpe3parSdk/models.rb', line 1562

def card_port
  @card_port
end

#nodeObject

type - Number

System node.



1554
1555
1556
# File 'lib/Hpe3parSdk/models.rb', line 1554

def node
  @node
end

#slotObject

type - Number

PCI bus slot in the node.



1558
1559
1560
# File 'lib/Hpe3parSdk/models.rb', line 1558

def slot
  @slot
end