19 lines
370 B
Ruby
19 lines
370 B
Ruby
# frozen_string_literal: true
|
|
|
|
module BulkImports
|
|
module Common
|
|
module Transformers
|
|
class UnderscorifyKeysTransformer
|
|
def initialize(options = {})
|
|
@options = options
|
|
end
|
|
|
|
def transform(_, data)
|
|
data.deep_transform_keys do |key|
|
|
key.to_s.underscore
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|