Class: ArrPM::V2::RPM

Inherits:
Object
  • Object
show all
Defined in:
lib/arr-pm/v2/package.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRPM

Returns a new instance of RPM.



11
12
13
# File 'lib/arr-pm/v2/package.rb', line 11

def initialize
  defaults
end

Instance Attribute Details

#epochObject

Returns the value of attribute epoch.



7
8
9
# File 'lib/arr-pm/v2/package.rb', line 7

def epoch
  @epoch
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/arr-pm/v2/package.rb', line 6

def name
  @name
end

#releaseObject

Returns the value of attribute release.



9
10
11
# File 'lib/arr-pm/v2/package.rb', line 9

def release
  @release
end

#versionObject

Returns the value of attribute version.



8
9
10
# File 'lib/arr-pm/v2/package.rb', line 8

def version
  @version
end

Instance Method Details

#defaultsObject



15
16
17
# File 'lib/arr-pm/v2/package.rb', line 15

def defaults
  @type = Type::BINARY
end