Sha256: 161a49da4207cee811e817e41597ff8695604cd19d84e94e11d1ba5e035481b2

Contents?: true

Size: 508 Bytes

Versions: 6

Compression:

Stored size: 508 Bytes

Contents

module Fog
  module Ovirt
    class Compute
      class V3
        class Real
          def list_quotas(filters = {})
            client.quotas(filters).map { |ovirt_obj| ovirt_attrs ovirt_obj }
          end
        end
        class Mock
          def list_quotas(_filters = {})
            xml = read_xml "quotas.xml"
            Nokogiri::XML(xml).xpath("/quotas/quota").map do |q|
              ovirt_attrs OVIRT::Quota.new(self, q)
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fog-ovirt-1.2.5 lib/fog/ovirt/requests/compute/v3/list_quotas.rb
fog-ovirt-1.2.4 lib/fog/ovirt/requests/compute/v3/list_quotas.rb
fog-ovirt-1.2.3 lib/fog/ovirt/requests/compute/v3/list_quotas.rb
fog-ovirt-1.2.2 lib/fog/ovirt/requests/compute/v3/list_quotas.rb
fog-ovirt-1.2.1 lib/fog/ovirt/requests/compute/v3/list_quotas.rb
fog-ovirt-1.2.0 lib/fog/ovirt/requests/compute/v3/list_quotas.rb