Sha256: 3dc78b0eeab17483f36bc0ca60363a270177496facffae3a175201d01508caa6

Contents?: true

Size: 402 Bytes

Versions: 28

Compression:

Stored size: 402 Bytes

Contents

module OVIRT
  class Client
    def quota(quota_id, opts={})
      q = http_get("/datacenters/%s/quotas/%s" % [current_datacenter.id, quota_id])
      OVIRT::Quota::new(self, q.root)
    end

    def quotas(opts={})
      http_get("/datacenters/%s/quotas" % CGI.escape(current_datacenter.id)).xpath('/quotas/quota').collect do |q|
        OVIRT::Quota::new(self, q)
      end.compact
    end
  end
end

Version data entries

28 entries across 26 versions & 2 rubygems

Version Path
rbovirt-0.1.7 lib/client/quota_api.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/rbovirt-0.1.6/lib/client/quota_api.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/rbovirt-0.1.6/lib/client/quota_api.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/rbovirt-0.1.6/lib/client/quota_api.rb
rbovirt-0.1.6 lib/client/quota_api.rb
rbovirt-0.1.5 lib/client/quota_api.rb
rbovirt-0.1.4 lib/client/quota_api.rb
rbovirt-0.1.3 lib/client/quota_api.rb
rbovirt-0.1.2 lib/client/quota_api.rb
rbovirt-0.0.38 lib/client/quota_api.rb
rbovirt-0.1.1 lib/client/quota_api.rb
rbovirt-0.0.37 lib/client/quota_api.rb
rbovirt-0.0.36 lib/client/quota_api.rb
rbovirt-0.1.0 lib/client/quota_api.rb
rbovirt-0.0.35 lib/client/quota_api.rb
rbovirt-0.0.34 lib/client/quota_api.rb
rbovirt-0.0.33 lib/client/quota_api.rb
rbovirt-0.0.32 lib/client/quota_api.rb
rbovirt-0.0.31 lib/client/quota_api.rb
rbovirt-0.0.30 lib/client/quota_api.rb