Class: Fog::Vsphere::Compute::Servertype
- Inherits:
-
Model
- Object
- Model
- Fog::Vsphere::Compute::Servertype
- Defined in:
- lib/fog/vsphere/models/compute/servertype.rb
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Servertype
constructor
A new instance of Servertype.
- #interfacetypes(filters = {}) ⇒ Object
- #to_s ⇒ Object
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_s ⇒ Object
16 17 18 |
# File 'lib/fog/vsphere/models/compute/servertype.rb', line 16 def to_s id end |