Parent

Methods

InstallInProgressException

Public Class Methods

new(count) click to toggle source
# File lib/install_in_progress_exception.rb, line 25
def initialize(count)
  @count = count
end

Public Instance Methods

to_xml() click to toggle source
# File lib/install_in_progress_exception.rb, line 29
def to_xml
  xml = Builder::XmlMarkup.new({})
  xml.instruct!

  xml.error do
    xml.type "PACKAGEKIT_INSTALL"
    xml.description "Cannot obtain patches, installation in progress. Remain #{@count} packages."
    xml.count @count, :type => "integer"
    xml.bug false, :type => "boolean"
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.