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.
-
#info ⇒ Object
Returns the value of attribute info.
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.
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
#amount ⇒ Object
Returns the value of attribute amount.
5 6 7 |
# File 'lib/paypal/payment/response/refund.rb', line 5 def amount @amount end |
#info ⇒ Object
Returns the value of attribute info.
6 7 8 |
# File 'lib/paypal/payment/response/refund.rb', line 6 def info @info end |