Module: Castle::API::Privacy::RequestData
- Defined in:
- lib/castle/api/privacy/request_data.rb
Overview
Sends POST /v1/privacy/users — Castle compiles the user’s data and emails it to the configured privacy mailbox. Closes #261 (GDPR Article 15).
Class Method Summary collapse
Class Method Details
.call(options = {}) ⇒ Hash
12 13 14 15 16 17 18 |
# File 'lib/castle/api/privacy/request_data.rb', line 12 def call( = {}) = Castle::Utils::DeepSymbolizeKeys.call( || {}) http = .delete(:http) config = .delete(:config) || Castle.config Castle::API.call(Castle::Commands::Privacy::RequestData.build(), {}, http, config) end |