class Paypal::Payment::Response::Refund

Attributes

amount[RW]
info[RW]

Public Class Methods

new(attributes = {}) click to toggle source
Calls superclass method Paypal::Base::new
# File lib/paypal/payment/response/refund.rb, line 8
def initialize(attributes = {})
  super
  @info = Response::RefundInfo.new(
    refund_status: attributes.delete(:refund_status)
  )
  @amount = Common::Amount.new(attributes[:amount])
end