Sha256: c6bee889f9915c5df6dabd0f998295f84fa1a7cb1f8da0291cb80d1d866e955c

Contents?: true

Size: 438 Bytes

Versions: 13

Compression:

Stored size: 438 Bytes

Contents

module Fog
  module Vsphere
    class Compute
      class Customfields < Fog::Collection
        model Fog::Vsphere::Compute::Customfield

        attr_accessor :vm

        def all(_filters = {})
          load service.list_customfields
        end

        def get(key)
          load(service.list_customfields).find do |cv|
            cv.key == (key.is_a? String ? key.to_i : key)
          end
        end
     end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fog-vsphere-3.7.0 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.6.8 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.6.7 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.6.6 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.6.5 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.6.4 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.6.3 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.6.2 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.5.3 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.6.0 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.5.2 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.5.1 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.5.0 lib/fog/vsphere/models/compute/customfields.rb