Class: Paypal::Payment::Response::Refund

Inherits:
Base
  • Object
show all
Defined in:
lib/paypal/payment/response/refund.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util

#==, formatted_amount, #numeric_attribute?, to_numeric

Constructor Details

#initialize(attributes = {}) ⇒ Refund

Returns a new instance of Refund.



7
8
9
10
# File 'lib/paypal/payment/response/refund.rb', line 7

def initialize(attributes = {})
  super
  @amount = Common::Amount.new(attributes[:amount])
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



5
6
7
# File 'lib/paypal/payment/response/refund.rb', line 5

def amount
  @amount
end