class Fog::Compute::Vsphere::Servertypes
Attributes
datacenter[RW]
fullname[RW]
id[RW]
Public Instance Methods
all(filters = { })
click to toggle source
# File lib/fog/vsphere/models/compute/servertypes.rb, line 10 def all(filters = { }) load service.list_server_types(filters.merge({:datacenter => datacenter})) end
get(id)
click to toggle source
# File lib/fog/vsphere/models/compute/servertypes.rb, line 14 def get(id) requires :datacenter new service.get_server_type(id, datacenter) rescue Fog::Compute::Vsphere::NotFound nil end