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.



8
9
10
11
12
13
14
# 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

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

#infoObject

Returns the value of attribute info.



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

def info
  @info
end