Class: Fog::Vsphere::Compute::Servertype

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

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Servertype

Returns a new instance of Servertype.



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

def initialize(attributes = {})
  super defaults.merge(attributes)
end

Instance Method Details

#interfacetypes(filters = {}) ⇒ Object



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

def interfacetypes(filters = {})
  attributes[:interfacetypes] ||= service.interfacetypes({ datacenter: datacenter, servertype: self }.merge(filters))
end

#to_sObject



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

def to_s
  id
end