class PagseguroCatcher::Transaction::Amount

Public Class Methods

new(body) click to toggle source
# File lib/pagseguro_catcher/transaction/amount.rb, line 6
def initialize(body)
  self.body = body
end

Public Instance Methods

discount() click to toggle source
# File lib/pagseguro_catcher/transaction/amount.rb, line 14
def discount
  self[:discountAmount].to_f
end
extra() click to toggle source
# File lib/pagseguro_catcher/transaction/amount.rb, line 26
def extra
  self[:extraAmount].to_f
end
fee() click to toggle source
# File lib/pagseguro_catcher/transaction/amount.rb, line 18
def fee
  self[:feeAmount].to_f
end
gross() click to toggle source
# File lib/pagseguro_catcher/transaction/amount.rb, line 10
def gross
  self[:grossAmount].to_f
end
net() click to toggle source
# File lib/pagseguro_catcher/transaction/amount.rb, line 22
def net
  self[:netAmount].to_f
end