Class: Hpe3parSdk::Descriptors

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commentObject

type - String

Any additional information for the host.



1441
1442
1443
# File 'lib/Hpe3parSdk/models.rb', line 1441

def comment
  @comment
end

#contactObject

type - String

The host’s owner and contact.



1437
1438
1439
# File 'lib/Hpe3parSdk/models.rb', line 1437

def contact
  @contact
end

#ipaddrObject

type - String

The host’s IP address.



1425
1426
1427
# File 'lib/Hpe3parSdk/models.rb', line 1425

def ipaddr
  @ipaddr
end

#locationObject

type - String

The host’s location.



1421
1422
1423
# File 'lib/Hpe3parSdk/models.rb', line 1421

def location
  @location
end

#modelObject

type - String

The host’s model.



1433
1434
1435
# File 'lib/Hpe3parSdk/models.rb', line 1433

def model
  @model
end

#osObject

type - String

The operating system running on the host.



1429
1430
1431
# File 'lib/Hpe3parSdk/models.rb', line 1429

def os
  @os
end