Class: Workarea::Paypal::Requests::GenerateToken
- Inherits:
-
Object
- Object
- Workarea::Paypal::Requests::GenerateToken
- Defined in:
- lib/workarea/paypal/requests/generate_token.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 ⇒ GenerateToken
constructor
A new instance of GenerateToken.
- #request_body(body) ⇒ Object
Constructor Details
#initialize ⇒ GenerateToken
Returns a new instance of GenerateToken.
7 8 9 10 11 12 13 |
# File 'lib/workarea/paypal/requests/generate_token.rb', line 7 def initialize @headers = {} @body = nil @verb = "POST" @path = "/v1/identity/generate-token" @headers["Content-Type"] = "application/json" end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
5 6 7 |
# File 'lib/workarea/paypal/requests/generate_token.rb', line 5 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
5 6 7 |
# File 'lib/workarea/paypal/requests/generate_token.rb', line 5 def headers @headers end |
#path ⇒ Object
Returns the value of attribute path.
5 6 7 |
# File 'lib/workarea/paypal/requests/generate_token.rb', line 5 def path @path end |
#verb ⇒ Object
Returns the value of attribute verb.
5 6 7 |
# File 'lib/workarea/paypal/requests/generate_token.rb', line 5 def verb @verb end |
Instance Method Details
#request_body(body) ⇒ Object
15 16 17 |
# File 'lib/workarea/paypal/requests/generate_token.rb', line 15 def request_body(body) @body = body end |