class Fog::Compute::Vsphere::Customfields
Attributes
vm[RW]
Public Instance Methods
all(_filters = {})
click to toggle source
# File lib/fog/vsphere/models/compute/customfields.rb, line 11 def all(_filters = {}) load service.list_customfields end
get(key)
click to toggle source
# File lib/fog/vsphere/models/compute/customfields.rb, line 15 def get(key) load(service.list_customfields).find do |cv| cv.key == (key.is_a? String ? key.to_i : key) end end