Class: RubyEventStore::TransformKeys

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_event_store/transform_keys.rb

Class Method Summary collapse

Class Method Details

.stringify(data) ⇒ Object


6
7
8
# File 'lib/ruby_event_store/transform_keys.rb', line 6

def stringify(data)
  deep_transform(data, &:to_s)
end

.symbolize(data) ⇒ Object


10
11
12
# File 'lib/ruby_event_store/transform_keys.rb', line 10

def symbolize(data)
  deep_transform(data, &:to_sym)
end