Method: ProcessOut::WebhookEndpoint#initialize
- Defined in:
- lib/processout/webhook_endpoint.rb
#initialize(client, data = {}) ⇒ WebhookEndpoint
Initializes the WebhookEndpoint object Params:
client-
ProcessOutclient instance data-
data that can be used to fill the object
66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/processout/webhook_endpoint.rb', line 66 def initialize(client, data = {}) @client = client self.id = data.fetch(:id, nil) self.project = data.fetch(:project, nil) self.project_id = data.fetch(:project_id, nil) self.url = data.fetch(:url, nil) self.events_whitelist = data.fetch(:events_whitelist, nil) self.sandbox = data.fetch(:sandbox, nil) self.created_at = data.fetch(:created_at, nil) end |