Class: Fog::Vsphere::Compute::SCSIController

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

Constant Summary collapse

DEFAULT_KEY =
1000
DEFAULT_TYPE =
"VirtualLsiLogicController".freeze

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ SCSIController

Returns a new instance of SCSIController.



14
15
16
17
18
# File 'lib/fog/vsphere/models/compute/scsicontroller.rb', line 14

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

Instance Method Details

#to_sObject



20
21
22
# File 'lib/fog/vsphere/models/compute/scsicontroller.rb', line 20

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