Method: Debian::AptPkg::Package#initialize

Defined in:
lib/debian/apt_pkg/package.rb

#initialize(id, name, full_name, arch, essential, important, current_version) ⇒ Package

Initialize the Package class

Examples:

new(id, name, full_name, arch, essential, important, current_version)

Parameters:

  • The (Integer)

    numeric ID of the package

  • The (String)

    name of the package

  • Get (String)

    the full name of the package, including the architecture

  • The (String)

    architecture of the package

  • Boolean (Boolean)

    value determining whether the package is essential

  • Boolean (Boolean)

    value determining whether the package has the ‘important’ flag set (‘Important: yes’ in the Packages file)

  • The (Version, NilClass)

    version of the package currently installed or ‘nil`

[View source]

28
29
30
31
32
33
34
35
36
# File 'lib/debian/apt_pkg/package.rb', line 28

def initialize(id, name, full_name, arch, essential, important, current_version)
  @id = id
  @name = name
  @full_name = full_name
  @arch = arch
  @essential = essential
  @important = important
  @current_version = current_version
end