Sha256: e4c2f200ebb43f7c1dff4edbe9af2bfd4ce25802ac1ffbc2b482a53409b392e0

Contents?: true

Size: 357 Bytes

Versions: 31

Compression:

Stored size: 357 Bytes

Contents

module OVIRT
class Quota < BaseObject
    attr_reader :name, :description

    def initialize(client, xml)
      super(client, xml[:id], xml[:href], (xml/'name').first.text)
      parse_xml_attributes!(xml)
      self
    end

    private
    def parse_xml_attributes!(xml)
      @desciption = ((xml/'description').first.text rescue nil)
    end
  end
end

Version data entries

31 entries across 29 versions & 2 rubygems

Version Path
rbovirt-0.0.29 lib/ovirt/quota.rb
rbovirt-0.0.28 lib/ovirt/quota.rb
rbovirt-0.0.27 lib/ovirt/quota.rb
rbovirt-0.0.26 lib/ovirt/quota.rb
rbovirt-0.0.25 lib/ovirt/quota.rb
rbovirt-0.0.24 lib/ovirt/quota.rb
rbovirt-0.0.23 lib/ovirt/quota.rb
rbovirt-0.0.22 lib/ovirt/quota.rb
rbovirt-0.0.21 lib/ovirt/quota.rb
rbovirt-0.0.20 lib/ovirt/quota.rb
rbovirt-0.0.19 lib/ovirt/quota.rb