class Fog::Compute::Vsphere::Servertype
Public Class Methods
new(attributes={} )
click to toggle source
Calls superclass method
Fog::Model::new
# File lib/fog/vsphere/models/compute/servertype.rb, line 14 def initialize(attributes={} ) super defaults.merge(attributes) end
Public Instance Methods
interfacetypes(filters={})
click to toggle source
# File lib/fog/vsphere/models/compute/servertype.rb, line 22 def interfacetypes filters={} attributes[:interfacetypes] ||= service.interfacetypes({ :datacenter => datacenter, :servertype => self }.merge(filters)) end
to_s()
click to toggle source
# File lib/fog/vsphere/models/compute/servertype.rb, line 18 def to_s id end
Private Instance Methods
defaults()
click to toggle source
# File lib/fog/vsphere/models/compute/servertype.rb, line 28 def defaults { :id=>"otherGuest64", :family=>"otherGuestFamily", :interfacetypes => nil, } end