lib/moneta/api/data_mapper.rb in moneta-api-1.13.0 vs lib/moneta/api/data_mapper.rb in moneta-api-2.0.0.rc1

- old
+ new

@@ -42,11 +42,10 @@ def fill(data) properties.each do |property, type| if data.has_key?(property) value = data[property] - property_value = type.nil? ? value : build_complex_value(type, value) instance_variable_set("@#{ property }", property_value) end end @@ -55,10 +54,10 @@ def to_hash properties.each_with_object({}) do |(property, _), hash| value = send(property) unless value.nil? - hash[ property.to_s.camelize_with_lower ] = to_hash_complex_value(value) + hash[ property.to_s.camelize(:lower) ] = to_hash_complex_value(value) end end end private