Class: Hpe3parSdk::FCPath
- Inherits:
-
Object
- Object
- Hpe3parSdk::FCPath
- Defined in:
- lib/Hpe3parSdk/models.rb
Instance Attribute Summary collapse
-
#driver_version ⇒ Object
- type - String
-
HBA driver version.
-
#firmware_version ⇒ Object
- type - String
-
HBA firmware version.
-
#host_speed ⇒ Object
- type - String
-
HBA host speed.
-
#model ⇒ Object
- type - String
-
HBA model.
-
#port_pos ⇒ Object
- type - PortPos
-
The portpos details.
-
#vendor ⇒ Object
- type - String
-
HBA vendor.
-
#wwn ⇒ Object
- type - String
-
A WWN assigned to the host.
Instance Method Summary collapse
-
#initialize(object_hash) ⇒ FCPath
constructor
A new instance of FCPath.
Constructor Details
#initialize(object_hash) ⇒ FCPath
Returns a new instance of FCPath.
1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 |
# File 'lib/Hpe3parSdk/models.rb', line 1337 def initialize(object_hash) if object_hash == nil return end self.wwn = object_hash['wwn'] !object_hash['portPos'].nil? ? self.port_pos = PortPos.new(object_hash['portPos']) : self.port_pos = nil self.firmware_version = object_hash['firmwareVersion'] self.vendor = object_hash['vendor'] self.model = object_hash['model'] self.driver_version = object_hash['driverVersion'] self.host_speed = object_hash['hostSpeed'] end |
Instance Attribute Details
#driver_version ⇒ Object
- type - String
-
HBA driver version.
1331 1332 1333 |
# File 'lib/Hpe3parSdk/models.rb', line 1331 def driver_version @driver_version end |
#firmware_version ⇒ Object
- type - String
-
HBA firmware version.
1319 1320 1321 |
# File 'lib/Hpe3parSdk/models.rb', line 1319 def firmware_version @firmware_version end |
#host_speed ⇒ Object
- type - String
-
HBA host speed.
1335 1336 1337 |
# File 'lib/Hpe3parSdk/models.rb', line 1335 def host_speed @host_speed end |
#model ⇒ Object
- type - String
-
HBA model.
1327 1328 1329 |
# File 'lib/Hpe3parSdk/models.rb', line 1327 def model @model end |
#port_pos ⇒ Object
- type - PortPos
-
The portpos details.
1315 1316 1317 |
# File 'lib/Hpe3parSdk/models.rb', line 1315 def port_pos @port_pos end |
#vendor ⇒ Object
- type - String
-
HBA vendor.
1323 1324 1325 |
# File 'lib/Hpe3parSdk/models.rb', line 1323 def vendor @vendor end |
#wwn ⇒ Object
- type - String
-
A WWN assigned to the host.
1311 1312 1313 |
# File 'lib/Hpe3parSdk/models.rb', line 1311 def wwn @wwn end |