Class: Hpe3parSdk::Descriptors
- Inherits:
-
Object
- Object
- Hpe3parSdk::Descriptors
- Defined in:
- lib/Hpe3parSdk/models.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
- type - String
-
Any additional information for the host.
-
#contact ⇒ Object
- type - String
-
The host’s owner and contact.
-
#ipaddr ⇒ Object
- type - String
-
The host’s IP address.
-
#location ⇒ Object
- type - String
-
The host’s location.
-
#model ⇒ Object
- type - String
-
The host’s model.
-
#os ⇒ Object
- type - String
-
The operating system running on the host.
Instance Method Summary collapse
-
#initialize(object_hash) ⇒ Descriptors
constructor
A new instance of Descriptors.
Constructor Details
#initialize(object_hash) ⇒ Descriptors
Returns a new instance of Descriptors.
1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 |
# File 'lib/Hpe3parSdk/models.rb', line 1443 def initialize(object_hash) if object_hash == nil return end self.location = object_hash['location'] self.ipaddr = object_hash['IPAddr'] self.os = object_hash['os'] self.model = object_hash['model'] self.contact = object_hash['contact'] self.comment = object_hash['comment'] end |
Instance Attribute Details
#comment ⇒ Object
- type - String
-
Any additional information for the host.
1441 1442 1443 |
# File 'lib/Hpe3parSdk/models.rb', line 1441 def comment @comment end |
#contact ⇒ Object
- type - String
-
The host’s owner and contact.
1437 1438 1439 |
# File 'lib/Hpe3parSdk/models.rb', line 1437 def contact @contact end |
#ipaddr ⇒ Object
- type - String
-
The host’s IP address.
1425 1426 1427 |
# File 'lib/Hpe3parSdk/models.rb', line 1425 def ipaddr @ipaddr end |
#location ⇒ Object
- type - String
-
The host’s location.
1421 1422 1423 |
# File 'lib/Hpe3parSdk/models.rb', line 1421 def location @location end |
#model ⇒ Object
- type - String
-
The host’s model.
1433 1434 1435 |
# File 'lib/Hpe3parSdk/models.rb', line 1433 def model @model end |
#os ⇒ Object
- type - String
-
The operating system running on the host.
1429 1430 1431 |
# File 'lib/Hpe3parSdk/models.rb', line 1429 def os @os end |