Class: Paypal::Payment::Response::Refund
- Defined in:
- lib/paypal/payment/response/refund.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Refund
constructor
A new instance of Refund.
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
#amount ⇒ Object
Returns the value of attribute amount.
5 6 7 |
# File 'lib/paypal/payment/response/refund.rb', line 5 def amount @amount end |