Class: PayPalCheckoutSdk::Payments::RefundsGetRequest
- Inherits:
-
Object
- Object
- PayPalCheckoutSdk::Payments::RefundsGetRequest
- Defined in:
- lib/payments/refunds_get_request.rb
Overview
Shows details for a refund, by ID.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#path ⇒ Object
Returns the value of attribute path.
-
#verb ⇒ Object
Returns the value of attribute verb.
Instance Method Summary collapse
-
#initialize(refund_id) ⇒ RefundsGetRequest
constructor
A new instance of RefundsGetRequest.
Constructor Details
#initialize(refund_id) ⇒ RefundsGetRequest
Returns a new instance of RefundsGetRequest.
18 19 20 21 22 23 24 25 26 |
# File 'lib/payments/refunds_get_request.rb', line 18 def initialize(refund_id) @headers = {} @body = nil @verb = "GET" @path = "/v2/payments/refunds/{refund_id}?" @path = @path.gsub("{refund_id}", CGI::escape(refund_id.to_s)) @headers["Content-Type"] = "application/json" end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
16 17 18 |
# File 'lib/payments/refunds_get_request.rb', line 16 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
16 17 18 |
# File 'lib/payments/refunds_get_request.rb', line 16 def headers @headers end |
#path ⇒ Object
Returns the value of attribute path.
16 17 18 |
# File 'lib/payments/refunds_get_request.rb', line 16 def path @path end |
#verb ⇒ Object
Returns the value of attribute verb.
16 17 18 |
# File 'lib/payments/refunds_get_request.rb', line 16 def verb @verb end |