Sha256: 612b12e97bd4b708e2ad31bb36b0011461f45c59da8902bd1023a8409e04efa3

Contents?: true

Size: 393 Bytes

Versions: 10

Compression:

Stored size: 393 Bytes

Contents

require "fog/core/collection"
require "fog/ovirt/models/compute/template"

module Fog
  module Ovirt
    class Compute
      class Templates < Fog::Collection
        model Fog::Ovirt::Compute::Template

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fog-ovirt-2.0.3 lib/fog/ovirt/models/compute/templates.rb
fog-ovirt-2.0.2 lib/fog/ovirt/models/compute/templates.rb
fog-ovirt-2.0.1 lib/fog/ovirt/models/compute/templates.rb
fog-ovirt-2.0.0 lib/fog/ovirt/models/compute/templates.rb
fog-ovirt-1.2.5 lib/fog/ovirt/models/compute/templates.rb
fog-ovirt-1.2.4 lib/fog/ovirt/models/compute/templates.rb
fog-ovirt-1.2.3 lib/fog/ovirt/models/compute/templates.rb
fog-ovirt-1.2.2 lib/fog/ovirt/models/compute/templates.rb
fog-ovirt-1.2.1 lib/fog/ovirt/models/compute/templates.rb
fog-ovirt-1.2.0 lib/fog/ovirt/models/compute/templates.rb