Class: PayPalCheckoutSdk::Payments::AuthorizationsGetRequest
- Inherits:
-
Object
- Object
- PayPalCheckoutSdk::Payments::AuthorizationsGetRequest
- Defined in:
- lib/paypal/paypal_checkout_sdk/payments/authorizations_get_request.rb
Overview
Shows details for an authorized payment, 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(authorization_id) ⇒ AuthorizationsGetRequest
constructor
A new instance of AuthorizationsGetRequest.
Constructor Details
#initialize(authorization_id) ⇒ AuthorizationsGetRequest
Returns a new instance of AuthorizationsGetRequest.
13 14 15 16 17 18 19 20 21 |
# File 'lib/paypal/paypal_checkout_sdk/payments/authorizations_get_request.rb', line 13 def initialize() @headers = {} @body = nil @verb = "GET" @path = "/v2/payments/authorizations/{authorization_id}?" @path = @path.gsub("{authorization_id}", CGI.escape(.to_s)) @headers["Content-Type"] = "application/json" end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
11 12 13 |
# File 'lib/paypal/paypal_checkout_sdk/payments/authorizations_get_request.rb', line 11 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
11 12 13 |
# File 'lib/paypal/paypal_checkout_sdk/payments/authorizations_get_request.rb', line 11 def headers @headers end |
#path ⇒ Object
Returns the value of attribute path.
11 12 13 |
# File 'lib/paypal/paypal_checkout_sdk/payments/authorizations_get_request.rb', line 11 def path @path end |
#verb ⇒ Object
Returns the value of attribute verb.
11 12 13 |
# File 'lib/paypal/paypal_checkout_sdk/payments/authorizations_get_request.rb', line 11 def verb @verb end |