Class: Hpe3parSdk::PortPos
- Inherits:
-
Object
- Object
- Hpe3parSdk::PortPos
- Defined in:
- lib/Hpe3parSdk/models.rb
Instance Attribute Summary collapse
-
#card_port ⇒ Object
- type - Number
-
Port number on the FC card.
-
#node ⇒ Object
- type - Number
-
System node.
-
#slot ⇒ Object
- type - Number
-
PCI bus slot in the node.
Instance Method Summary collapse
-
#initialize(object_hash) ⇒ PortPos
constructor
A new instance of PortPos.
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_port ⇒ Object
- type - Number
-
Port number on the FC card.
1562 1563 1564 |
# File 'lib/Hpe3parSdk/models.rb', line 1562 def card_port @card_port end |
#node ⇒ Object
- type - Number
-
System node.
1554 1555 1556 |
# File 'lib/Hpe3parSdk/models.rb', line 1554 def node @node end |
#slot ⇒ Object
- type - Number
-
PCI bus slot in the node.
1558 1559 1560 |
# File 'lib/Hpe3parSdk/models.rb', line 1558 def slot @slot end |