class EventStoreClient::EncryptionMetadata
Attributes
data[R]
schema[R]
Public Class Methods
new(data:, schema:)
click to toggle source
# File lib/event_store_client/encryption_metadata.rb, line 19 def initialize(data:, schema:) @data = data.transform_keys(&:to_sym) @schema = schema end
Public Instance Methods
call()
click to toggle source
# File lib/event_store_client/encryption_metadata.rb, line 6 def call return {} unless schema { key: schema[:key].call(data), attributes: schema[:attributes].map(&:to_sym) } end