Class: Fog::Vsphere::Compute::NVMEController

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/vsphere/models/compute/nvmecontroller.rb

Constant Summary collapse

DEFAULT_KEY =
2000
DEFAULT_TYPE =
"VirtualNVMEController".freeze

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ NVMEController

Returns a new instance of NVMEController.



12
13
14
15
16
# File 'lib/fog/vsphere/models/compute/nvmecontroller.rb', line 12

def initialize(attributes = {})
  super
  self.key ||= DEFAULT_KEY
  self.type ||= DEFAULT_TYPE
end

Instance Method Details

#to_sObject



18
19
20
# File 'lib/fog/vsphere/models/compute/nvmecontroller.rb', line 18

def to_s
  "#{type} ##{key}:, unit_number: #{unit_number}"
end