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