Sha256: e69fe899b218a068a5e1fdcaed9d306954687fc1865a958dfd815daeb4f2bd60

Contents?: true

Size: 416 Bytes

Versions: 8

Compression:

Stored size: 416 Bytes

Contents

require 'fog/core/collection'
require 'fog/ovirt/models/compute/instance_type'

module Fog
  module Compute
    class Ovirt
      class InstanceTypes < Fog::Collection
        model Fog::Compute::Ovirt::InstanceType

        def all(filters = {})
          load service.list_instance_types(filters)
        end

        def get(id)
          new service.get_instance_type(id)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
fog-ovirt-0.1.3 lib/fog/ovirt/models/compute/instance_types.rb
fog-ovirt-0.1.2 lib/fog/ovirt/models/compute/instance_types.rb
fog-ovirt-0.1.1 lib/fog/ovirt/models/compute/instance_types.rb
fog-ovirt-0.1.0 lib/fog/ovirt/models/compute/instance_types.rb
fog-ovirt-0.0.1 lib/fog/ovirt/models/compute/instance_types.rb
fog-1.41.0 lib/fog/ovirt/models/compute/instance_types.rb
fog-1.40.0 lib/fog/ovirt/models/compute/instance_types.rb
fog-1.39.0 lib/fog/ovirt/models/compute/instance_types.rb