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