Sha256: 0457e4b692b8fa6131e5d26b1a889f39e297545b0cc17144d3e388c8cec11461

Contents?: true

Size: 515 Bytes

Versions: 10

Compression:

Stored size: 515 Bytes

Contents

module Fog
  module Vsphere
    class Compute
      class Customfields < Fog::Collection
        autoload :Customfield, File.expand_path('../customfield', __FILE__)

        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

10 entries across 10 versions & 1 rubygems

Version Path
fog-vsphere-3.4.0 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.3.1 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.3.0 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.2.5 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.2.2 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.2.1 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.2.0 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.1.1 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.1.0 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-3.0.0 lib/fog/vsphere/models/compute/customfields.rb