Class: RPM::CallbackData

Inherits:
Struct
  • Object
show all
Defined in:
lib/rpm/transaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amountObject

Returns the value of attribute amount

Returns:

  • (Object)

    the current value of amount



5
6
7
# File 'lib/rpm/transaction.rb', line 5

def amount
  @amount
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



5
6
7
# File 'lib/rpm/transaction.rb', line 5

def key
  @key
end

#packageObject

Returns the value of attribute package

Returns:

  • (Object)

    the current value of package



5
6
7
# File 'lib/rpm/transaction.rb', line 5

def package
  @package
end

#totalObject

Returns the value of attribute total

Returns:

  • (Object)

    the current value of total



5
6
7
# File 'lib/rpm/transaction.rb', line 5

def total
  @total
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



5
6
7
# File 'lib/rpm/transaction.rb', line 5

def type
  @type
end

Instance Method Details

#to_sObject



8
9
10
# File 'lib/rpm/transaction.rb', line 8

def to_s
  "#{type} #{key} #{package} #{amount} #{total}"
end