Method: ProcessOut::WebhookEndpoint#to_json
- Defined in:
- lib/processout/webhook_endpoint.rb
#to_json(options) ⇒ Object
Overrides the JSON marshaller to only send the fields we want
85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/processout/webhook_endpoint.rb', line 85 def to_json() { "id": self.id, "project": self.project, "project_id": self.project_id, "url": self.url, "events_whitelist": self.events_whitelist, "sandbox": self.sandbox, "created_at": self.created_at, }.to_json end |