Class: PayPal::RefreshTokenRequest
- Inherits:
-
Object
- Object
- PayPal::RefreshTokenRequest
- Defined in:
- lib/paypal/token_requests.rb
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(environment, authorization_code) ⇒ RefreshTokenRequest
constructor
A new instance of RefreshTokenRequest.
Constructor Details
#initialize(environment, authorization_code) ⇒ RefreshTokenRequest
Returns a new instance of RefreshTokenRequest.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/paypal/token_requests.rb', line 29 def initialize(environment, ) @path = "/v1/identity/openidconnect/tokenservice" @body = { grant_type: "authorization_code", code: , } @headers = { "Content-Type" => "application/x-www-form-urlencoded", "Authorization" => environment., } @verb = "POST" end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
27 28 29 |
# File 'lib/paypal/token_requests.rb', line 27 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
27 28 29 |
# File 'lib/paypal/token_requests.rb', line 27 def headers @headers end |
#path ⇒ Object
Returns the value of attribute path.
27 28 29 |
# File 'lib/paypal/token_requests.rb', line 27 def path @path end |
#verb ⇒ Object
Returns the value of attribute verb.
27 28 29 |
# File 'lib/paypal/token_requests.rb', line 27 def verb @verb end |