Class: Workarea::Paypal::Requests::DeleteWebhook

Inherits:
Object
  • Object
show all
Defined in:
lib/workarea/paypal/requests/delete_webhook.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body.



5
6
7
# File 'lib/workarea/paypal/requests/delete_webhook.rb', line 5

def body
  @body
end

#headersObject

Returns the value of attribute headers.



5
6
7
# File 'lib/workarea/paypal/requests/delete_webhook.rb', line 5

def headers
  @headers
end

#pathObject

Returns the value of attribute path.



5
6
7
# File 'lib/workarea/paypal/requests/delete_webhook.rb', line 5

def path
  @path
end

#verbObject

Returns the value of attribute verb.



5
6
7
# File 'lib/workarea/paypal/requests/delete_webhook.rb', line 5

def verb
  @verb
end